Code Monkey home page Code Monkey logo

rag's Introduction

Langchain RAG_Project

This is a sample project of RAG (Retrieval Augmented Generation as a Service)

I want to clarify that I'm not a professional developer; I simply have a passion for technology. A big thank you to all those individuals who generously share their knowledge across various media platforms.

Please note you will need to Install dependencies. Depending on your system and set up, you will need to install different packages. As you run and debug your code, you will be able to learn which ones.

You'll also need to set up an OpenAI account (and set the OpenAI key in your environment variable) for this to work. Quick tutorial to set Python: https://platform.openai.com/docs/quickstart?context=python including how to set the API Key https://platform.openai.com/api-keys.

Make domain data available to the program, Load it, process it, embed it and load it in a Chroma DB.

python Loader.py

Query the Chroma DB. Retrieve the relevant Domain data chunks, enhance the promot, call OpenAI LLM and generate the answer

python RetrieverandGenerator.py "How do the different AI strategies of Cisco, Amazon, Alphabet and Meta compare?"

rag's People

Contributors

asunsada 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.