mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 04:35:58 -10:00
19 lines
398 B
Python
19 lines
398 B
Python
from praisonaiagents import Agent
|
|
|
|
config = {
|
|
"vector_store": {
|
|
"provider": "chroma",
|
|
"config": {
|
|
"collection_name": "praison",
|
|
"path": ".praison",
|
|
}
|
|
}
|
|
}
|
|
|
|
agent = Agent(
|
|
name="Knowledge Agent",
|
|
instructions="You answer questions based on the provided knowledge.",
|
|
knowledge=["small.pdf"]
|
|
)
|
|
|
|
agent.start("What is KAG in one line?") |