Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jlenon7/openai_rag

🤖 Implementation of RAG techniques to answer questions about PEC 42/2023.
https://github.com/jlenon7/openai_rag

Last synced: 25 days ago
JSON representation

🤖 Implementation of RAG techniques to answer questions about PEC 42/2023.

Awesome Lists containing this project

README

        

# OpenAI RAG 🤖

> Implementation of RAG techniques to answer questions about PEC 42/2023.

## Tools

The project uses the following tools to work:

- [LangChain](https://python.langchain.com/docs/introduction/)
- [Chroma as Vector DB](https://www.trychroma.com/)
- [GPT 3.5 Turbo as LLM](https://platform.openai.com/docs/models#gpt-3-5-turbo)
- [ADA 002 for Text Embedding](https://platform.openai.com/docs/models#embeddings)

## Running

To run the project first create a new Python environment and activate it. I'm using [Anaconda](https://www.anaconda.com/) for setting the python version that pipenv should use to set up the environment. The command bellow will automatically setup the environment with conda and pipenv:

```shell
make env
```

Now install all the project dependencies:

```shell
make install-all
```

Insert the file chunks in Chroma database by running:

```shell
make insert
```

Ask something by running the following:

```shell
make ask
```

You can change your question inside `bin/ask.py`.