This example demonstrates RAG built from scratch without using any supporting framework like Langchain and LlamaIndex.
This easy to build RAG locally can be done in following steps:
- Reading Document and Recursive Text Splitting
- Setup LanceDB table with schema and LanceDB Embedding API
- Insert Chunks in LanceDB table
- Query your question(This step will do semantic search and use Llama3 llm for resulting output)
NOTE: You can change document and query in document both in rag.py
, Try to run with your custom document with your custom query questions.