AgentSea. Embeddings. RetrievalTool
(agentsea_embeddings v0.1.0)
Copy Markdown
An AgentSea.Tool that lets an agent search a knowledge base — the retrieval
half of RAG.
It reads the AgentSea.Embeddings handle from the agent's execution context
(ctx.embeddings), so the same tool module works against any store/embedder
without per-instance config. Add it to an agent's tools and pass the handle
when running:
Agent.run(agent, "what is the refund policy?", %{embeddings: handle})