langchain adapter provides native LangChain tools for seamless integration with agents.
Using Tools with Agents
- Node.js
- Python
Available Tools
The LangChain adapter provides three tools:| Tool | Description |
|---|---|
memvid_put | Store documents in memory with title, label, and text |
memvid_find | Search for relevant documents by query |
memvid_ask | Ask questions with RAG-style answer synthesis |
Using as a Retriever (Python)
Conversational RAG (Python)
Custom Search Options
Best Practices
- Use read-only mode for retrieval-only applications
- Set appropriate k values based on your context window
- Use hybrid mode for best recall
- Close the memory when done