How pranavqr/excel-rag works
This is an Amazon product-catalog Q&A application backed by Qdrant. The primary workflow accepts a chat question, embeds it, retrieves product records, and uses a language model to answer from those records; the UI also retains chat history and shows retrieved sources. A separate data-preparation workflow embeds Excel product and review content and uploads it to Qdrant. Collection setup, payload indexing, data auditing, verification, and a command-line semantic search are additional product capabilities. The README is empty, so relationships below are grounded in the shown source excerpts.
Main entry points: qdrant_connection.py Qdrant connection · rag_engine.py RAG engine · semantic_search.py CLI semantic search · app.py Streamlit chat
Components 13
User experience
- Streamlit chat
app.py
Question answering
- RAG engine
src/excel_testing/rag_engine.py - Sentence encoder
- Groq language model
- CLI semantic search
src/excel_testing/semantic_search.py
Catalog preparation
- Excel ingestion
src/excel_testing/ingest_excel.py - Dataset audit
src/excel_testing/data_audit.py
Qdrant operations
- Qdrant catalog
- Qdrant connection
src/excel_testing/qdrant_connection.py - Collection setup
src/excel_testing/qdrant_collection.py - Payload indexes
src/excel_testing/create_payload_indexes.py - Stored-data verification
src/excel_testing/verify_qdrant.py
Other components
- Question asker
Connections 18
- Question asker → Streamlit chat: asks question
app.py - Streamlit chat → RAG engine: retrieves products
app.py - Streamlit chat → RAG engine: generates answer
app.py - RAG engine → Sentence encoder: embeds query
src/excel_testing/rag_engine.py - RAG engine → Qdrant catalog: queries products
src/excel_testing/rag_engine.py - RAG engine → Groq language model: requests completion
src/excel_testing/rag_engine.py - CLI semantic search → Sentence encoder: embeds query
src/excel_testing/semantic_search.py - CLI semantic search → Qdrant connection: connects through
src/excel_testing/semantic_search.py - CLI semantic search → Qdrant catalog: searches catalog
src/excel_testing/semantic_search.py - Excel ingestion → Qdrant connection: connects through
src/excel_testing/ingest_excel.py - Excel ingestion → Qdrant catalog: uploads points
src/excel_testing/ingest_excel.py - Collection setup → Qdrant connection: connects through
src/excel_testing/qdrant_collection.py - Collection setup → Qdrant catalog: creates collection
src/excel_testing/qdrant_collection.py - Payload indexes → Qdrant connection: connects through
src/excel_testing/create_payload_indexes.py - Payload indexes → Qdrant catalog: creates indexes
src/excel_testing/create_payload_indexes.py - Stored-data verification → Qdrant connection: connects through
src/excel_testing/verify_qdrant.py - Stored-data verification → Qdrant catalog: reads records
src/excel_testing/verify_qdrant.py - Qdrant connection → Qdrant catalog: opens client
src/excel_testing/qdrant_connection.py