A sophisticated command-line RAG (Retrieval-Augmented Generation) chatbot for answering questions about J.R.R. Tolkien's "The Hobbit". Powered by Ollama, LangChain, and ChromaDB with advanced features including:
- Hybrid retrieval (BM25 + vector search)
- Contextual compression with FlashRank reranking
- Chapter-aware filtering
- Conversation history tracking
- Streaming responses
- Python 3.9+ installed
- Ollama installed and running with:
- LLM model (e.g.,
llama3.1,llama3.2) - Embedding model (e.g.,
mxbai-embed-large)
- LLM model (e.g.,
Install Ollama models:
ollama pull llama3.1
ollama pull mxbai-embed-largepip install hobbit-scholarAfter installation:
hobbit-init
hobbit-scholarMIT License (or specify your license)