AI-powered research assistant for analyzing food desert related documents.
Install Poetry if you haven't already:
pip install poetryThen, install the dependencies:
poetry installCreate a .env file in the root directory and add your API keys:
OPENAI_API_KEY=your_api_key_here
Before running the application, you need to process the documents:
python ingestion.pyThis will create a .chroma directory containing the document embeddings. Note that this directory might be large depending on your document collection.
Launch the Streamlit application:
poetry run streamlit run main.pyThe web interface will automatically open in your default browser. You can:
- Enter your research question about food deserts
- Get AI-generated answers based on the document collection
- View relevant source documents with page references
- Document relevance grading
- AI-powered answer generation
- Clean web interface using Streamlit
- Source document tracking with page references
.
├── main.py # Streamlit application entry point
├── graph/
│ ├── chains/ # LangChain components
│ └── nodes/ # Processing nodes
├── poetry.lock # Poetry dependency lock file
└── pyproject.toml # Project configuration