diff --git a/docs/home.mdx b/docs/home.mdx index 29ed810a..45443b3d 100644 --- a/docs/home.mdx +++ b/docs/home.mdx @@ -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" + ) ) ``` @@ -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", "./pdfs/" ]