embed / embedMany),
index into Infino, and expose retrieval as a tool the model calls, so the agent
grounds its answers in your data.
- Index.
embedManyyour chunks, thenappendthem to an Infino table with an FTS + vector index. - Retrieve. Define a
toolwhoseexecuteembeds the query and runs Infino’s hybrid (BM25 + vector) search, returning the top passages. - Generate. Pass the tool to
generateTextwithstopWhen: stepCountIs(...); the model calls it to ground its answer.
@infino-ai/infino package
and the Quickstart for the Node API used inside the tool.
