Coder Social home page Coder Social logo

llm-headline-generator's Introduction

Retrieval

System Architecture

Screenshot 2024-06-19 at 4 17 39 PM

Data Extraction

name description industry category url headline subhead cta founded location tags
GitLab GitLab is the first single application for the entire DevOps lifecycle. Only GitLab enables Concurrent DevOps, unlocking organizations from the constraints of today’s toolchain. GitLab provides unmatched visibility, radical new levels of efficiency and comprehensive governance to significantly compress the time between planning a change and monitoring its effect. This makes the software lifecycle 200% faster, radically improving the speed of business. GitLab and Concurrent DevOps collapses cycle times by driving higher efficiency across all stages of the software development lifecycle. For the first time, Product, Development, QA, Security, and Operations teams can work concurrently in a single application. There’s no need to integrate and synchronize tools, or waste time waiting for handoffs. Everyone contributes to a single conversation, instead of managing multiple threads across disparate tools. And only GitLab gives teams complete visibility across the lifecycle with a single, trusted source of data to simplify troubleshooting and drive accountability. All activity is governed by consistent controls, making security and compliance first-class citizens instead of an afterthought. Built on Open Source, GitLab leverages the community contributions of thousands of developers and millions of users to continuously deliver new DevOps innovations. More than 100,000 organizations from startups to global enterprise organizations, including Ticketmaster, Jaguar Land Rover, NASDAQ, Dish Network and Comcast trust GitLab to deliver great software at new speeds. B2B Engineering, Product and Design http://gitlab.com/ Software. Faster. GitLab is the most comprehensive AI-powered DevSecOps Platform. Get free trial 2012 San Francisco W15, PUBLIC, DEVELOPER-TOOLS, DEVSECOPS, OPEN-SOURCE, SAN FRANCISCO

Stack used

I'm using LanceDB to build a MVP fast.

pip install lancedb

Load bi-encoder

db = lancedb.connect("/tmp/db")
model = get_registry().get("sentence-transformers").create(name="BAAI/bge-small-en-v1.5", device="cpu")

Load metadata

class Documents(LanceModel):
    text: str = model.SourceField()
    vector: Vector(model.ndims()) = model.VectorField()

table = db.create_table("pd_table", schema=Documents)

Read data

df = pd.read_csv("data.csv")

Transform data into required format

df["text"] = df[df.columns.to_list()].astype(str).agg(" ".join, axis=1)

docs = [{"text": x} for x in df["text"]]

Add docs to the table

table.add(docs)

Create a index on the column

table.create_fts_index("text")

Reranking

from lancedb.rerankers import CohereReranker

reranker = CohereReranker(api_key=cohere_api_key)

Query

query = "How many repositories does github have?"

result = table.search(query, query_type="hybrid").limit(5).rerank(reranker=reranker).to_list()

Chat

from langchain_cohere import ChatCohere

prompt = f"""
Context is given below:
{context}

Answer the question using the context: {query}
"""

cohere_chat_model = ChatCohere(cohere_api_key=key)
response = cohere_chat_model.invoke(prompt)
print(f"Response: \n {response.content}")

llm-headline-generator's People

Contributors

aniket-mish avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.