mirror of
https://github.com/agno-agi/agno.git
synced 2026-10-12 02:10:54 +00:00
## Summary add async support for firecrawl kb and reader ## Type of change - [ ] Bug fix (If applicable, issue number: #____) - [x] New feature - [x] Breaking change - [ ] Improvement - [ ] Model update - [ ] Other: _____________________ --- ## Checklist - [x] Code complies with style guidelines - [x] Ran format/validation scripts (`./scripts/format.sh` and `./scripts/validate.sh`) - [x] Self-review completed - [x] Documentation updated (comments, docstrings) - [x] Examples and guides: Relevant cookbook examples have been included or updated (if applicable) - [x] Tested in clean environment - [x] Tests added/updated (if applicable) --- ## Additional Notes Add any important context (deployment instructions, screenshots, security considerations, etc.)
23 lines
695 B
Python
23 lines
695 B
Python
from agno.agent import Agent
|
|
from agno.knowledge.firecrawl import FireCrawlKnowledgeBase
|
|
from agno.vectordb.qdrant import Qdrant
|
|
|
|
COLLECTION_NAME = "website-content"
|
|
|
|
vector_db = Qdrant(collection=COLLECTION_NAME, url="http://localhost:6333")
|
|
|
|
# Create a knowledge base with the seed URLs
|
|
knowledge_base = FireCrawlKnowledgeBase(
|
|
urls=["https://docs.agno.com/introduction"],
|
|
vector_db=vector_db,
|
|
)
|
|
|
|
# Create an agent with the knowledge base
|
|
agent = Agent(knowledge=knowledge_base, search_knowledge=True, debug_mode=True)
|
|
|
|
if __name__ == "__main__":
|
|
# Comment out after first run
|
|
knowledge_base.load(recreate=False)
|
|
|
|
agent.print_response("How does agno work?", markdown=True)
|