v1.4.6
Changelog
New Features:
- Cerebras Model Provider: Added Cerebras as a model provider.
- Claude Web Search: Added support for Claude’s new web search tool.
- Knowledge Base Metadata Filtering (Beta): Added support for filtering documents by metadata
-
Two Ways to Apply Filters:
-
Explicit Filtering: Pass filters directly to Agent or during run/query
# Option 1: Filters on Agent initialization agent = Agent( knowledge=knowledge_base, knowledge_filters={"filter_1": "abc"} ) # Option 2: Filters on run execution agent.run("Tell me about...", knowledge_filters={"filter_1": "abc"})
See docs here
-
Agentic Filtering: Agent automatically detects and applies filters from user queries
# Enable automatic filter detection agent = Agent( knowledge=knowledge_base, enable_agentic_knowledge_filters=True ) # Agent extracts filters from query agent.run("Tell me about John Doe's experience...")
See docs here
-
-
Two approaches for adding metadata to documents:
-
During Knowledge Base Initialization:
knowledge_base = PDFKnowledgeBase(path=[ { "path": "file_1.pdf", "metadata": { "user_id": "abc" } }, { "path": "file_2.pdf", "metadata": { "user_id": "xyz" } } ])
-
During Individual Document Loading:
knowledge_base.load_document( path="file.pdf", metadata={"user_id": "abc"} )
-
-
Compatibility
- Knowledge Base Types:
PDF
,Text
,DOCX
,JSON
, andPDF_URL
- Vector Databases:
Qdrant
,LanceDB
, andMongoDB
- Knowledge Base Types:
-
Improvements:
- User and Session ID in Tools: Added
current_user_id
andcurrent_session_id
as default variables insession_data
.
Bug Fixes:
- Knowledge Base ID Clashes: Knowledge files with overlapping names (e.g.,
abc.-.xyz.pdf
andabc.-.def.pdf
) were being incorrectly identified due to the readers using formatted names as unique id which were getting uniqueness conflict. Introduced a unique ID for each document in all the readers usinguuidv4()
to ensure strict identification and prevent conflicts.
What's Changed
- weave-cookbook-ag-3050 by @ysolanky in #3102
- fix: readers set unique id by @kausmeows in #3104
- add cerebras OpenAILike and SDK model integration by @kausmeows in #3118
- Notion MCP agent by @Mustafa-Esoofally in #3115
- metrics-fix-ag-3052 by @ysolanky in #3119
- Massive tests fix code refactor by @Mustafa-Esoofally in #3098
- model-cleanup by @ysolanky in #3080
- agent-reasoning-update-ag-3057 by @ysolanky in #3131
- add workflow for cerebras by @kausmeows in #3142
- [bug-fix] Remove null for optional values by @dirkbrnd in #3123
- Add cookbook for langfuse via openlit by @dirkbrnd in #3127
- update reasoning tools cookbook with ibm-watsonx by @kausmeows in #3150
- feat-claude-web-search-ag-3053 by @ysolanky in #3128
- [feat] Add current_user_id and current_session_id by @dirkbrnd in #3152
- feat: knowledge filters- manual + agentic v1 by @kausmeows in #3005
- fix message history bug in agentic rag and answer engine by @Ayush0054 in #3100
- update lancedb by @kausmeows in #3155
- Release 1.4.6 by @dirkbrnd in #3154
Full Changelog: v1.4.5...v1.4.6