Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions docs/home.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,14 @@ seo:
Agents remember past interactions across sessions. Short-term, long-term, and episodic memory systems keep context without re-prompting.

```python
from praisonaiagents import Agent, MemoryConfig

agent = Agent(
name="assistant",
memory=True, # Enable persistent memory
user_id="user_123" # Scoped to specific user
memory=MemoryConfig(
backend="file",
user_id="user_123"
)
)
```
</Accordion>
Expand All @@ -106,10 +110,12 @@ seo:
Connect agents to your documents, databases, and APIs. Built-in RAG with auto-chunking, embeddings, and semantic search.

```python
from praisonaiagents import Agent

agent = Agent(
name="researcher",
knowledge="./docs/", # Local documents
knowledge_sources=[ # Or multiple sources
knowledge=[ # Multiple knowledge sources
"./docs/",
"https://example.com/api",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example includes a URL as a knowledge source, but the current implementation of Agent._process_knowledge in praisonaiagents/agent/agent.py (lines 4403-4405) contains a pass statement for URLs, meaning they are currently ignored during knowledge processing. Additionally, Knowledge.add (line 451) raises a NotImplementedError for URLs. To ensure the example is fully functional and matches the current SDK capabilities as stated in the PR description, consider using only local file paths for now.

"./pdfs/"
]
Expand Down