nroldanf / rag-playground

Testing different RAG configurations (embeddings, vector stores, llm, etc)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RAG (Retrieval Augmented Generation) Playground

Playing with different tools for building RAG systems.

  • Embeddings: OpenAI, Huggingface
  • Vector Stores: ChromaDB, QDrant
  • LLM: OpenAI, Huggingface
  • Chat interfaces: Gradio, Streamlit, Typer
  • LLM Frameworks: Langchain, Llamaindex
  • Prompting languages: LMQL, Guidance
  • Agents

Langchain + Huggingface or OpenAI

Index data

  • Put the documents you want to index inside doc folder.
  • Run create_index.py

Start and mlflow server

Start the server for working locally:

mlflow server --backend-store-uri <absolute-path-to-tracking-directory> --default-artifact-root tracking/ --host 127.0.0.1:5001

Open the UI by going to http://127.0.0.1:5001/

Ask questions

  • Change the query.
  • Run chatbot.py

TODO

About

Testing different RAG configurations (embeddings, vector stores, llm, etc)


Languages

Language:Python 100.0%