How karthik-56/2-wheeler_guide works
BikeGenie is a small Python two-wheeler advice prototype. Its implemented path loads local guide text, chunks and indexes it, retrieves context for a hardcoded question, routes that question to a prompt chain, and prints the answer. The README describes interactive user input and Streamlit, but the shown UI code is commented out. Bike-site pages are loaded but are not connected to the index or answer chain in the excerpt. The graph reflects these limits rather than implying they contribute to recommendations.
Main entry points: guide.py Retrieval chain · guide.txt Local guide text
Components 16
Knowledge sources
- Local guide text
guide.txt - Text loader
guide.py - Bike listing pages
- Web loaders
guide.py
Context retrieval
- Text chunking
guide.py - Text embeddings
guide.py - Chroma index
guide.py - Context retriever
guide.py
Answer generation
- Question invocation
guide.py - Prompt router
guide.py - Bike advice prompts
guide.py - Prompt chains
guide.py - Llama 3 model
- Retrieval chain
guide.py - Printed answer
guide.py
Other components
- Guide user
Connections 14
- Guide user → Question invocation: asks question
README.md - Local guide text → Text loader: loads text
guide.py - Bike listing pages → Web loaders: loads listings
guide.py - Text loader → Text chunking: splits documents
guide.py - Text chunking → Text embeddings: embeds chunks
guide.py - Text embeddings → Chroma index: indexes chunks
guide.py - Chroma index → Context retriever: provides search
guide.py - Question invocation → Retrieval chain: invokes query
guide.py - Retrieval chain → Context retriever: retrieves context
guide.py - Retrieval chain → Prompt router: routes query
guide.py - Prompt router → Bike advice prompts: selects prompt
guide.py - Bike advice prompts → Prompt chains: configures chain
guide.py - Prompt chains → Llama 3 model: generates response
guide.py - Retrieval chain → Printed answer: prints answer
guide.py