An AI-powered agent for classifying prompts using DSPy and ollama.
-
Clone the repository
-
Install dependencies:
pip install -r requirements.txt
-
Copy
.envand fill in your API keys -
Configure ollama locally on mac run brew install ollama
in another terminal(start ollama server locally and keep it running) ollama serve
Now pull the model ollama pull phi3
DSPY_MODEL: The DSPy model to use (default: ollama)DSPY_MODEL_NAME: The specific model nameSERPAPI_API_KEY: API key for SerpAPI integration