Giter Club home page Giter Club logo

llm_07_langchain_embeddings's Introduction

This is the first embedding script, that loads simple text documents into a vector store and enhances the LLM model with new informations. To run this, chromadb needs to be installed.

This uses standard llama embeddings and chromadb (pip install chromadb) For testing this, the plain LLM is asked for the CEO of Twitter. In the next example, the RetrievalQA is used, with two additional texts: 1. Elon Musk is new CEO 2. Lina Yaccarino is new CEO

One text is english and one is german.

(Note the texts are in order of the date, if not it is wrong!)

The reults are:

Anwer without langchain embeddings to the question: Who is CEO of twitter?
As of March 2023, Twitter's CEO is Jack Dorsey. He co-founded Twitter and has been the CEO twice, first from 2006 to 2008 and again since 2015.
Context: You are looking for information about the CEO of Twitter.

Answer with Langchain embeddings to the question Who is CEO of twitter?
On 01.07.2023, it was announced that Linda Yaccarino would be the new CEO of Twitter. So, the answer is Linda Yaccarino.

llm_07_langchain_embeddings's People

Contributors

derandreas-dt 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.