This project is an AI-powered historian agent focused on Napoleon, leveraging Semantic Kernel, OpenAI, and Neo4j. It enables users to ask historical questions, which are answered using a vector database and language models.
- Conversational agent: Chat with an AI historian about Napoleon.
- Vector search: Retrieves relevant historical information from a Neo4j-backed vector database.
- Streaming responses: See answers as they are generated in real time.
-
Clone the repository and navigate to the project directory.
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables:
Copy.envand fill in your credentials for Neo4j and OpenAI. -
Run the agent:
python main.py
Edit .env with your credentials:
NEO4J_URI=
NEO4J_USERNAME=
NEO4J_PASSWORD=
NEO4J_DATABASE=
OPENAI_API_KEY=
- Start the program and enter your historical question about Napoleon.
- Type
qto exit.
MIT License