Narsil documentation

Narsil is an open source search engine with full-text, vector, hybrid, and geosearch on one typed index. It embeds in your app or serves a REST API behind its own server, and recorded benchmark runs score it against the engines on either side of it.

Getting started

1 guide

Core concepts

6 guides

Search modes

4 guides

Operations

6 guides

Clients

2 guides

AI agents

9 guides

Overview4 min readRead what one Narsil search returns to an AI agent, and find the guide for each failure that a person would notice.Cite the passage behind an answer16 min readGive every answer from an AI agent the rule's reference and its exact sentence, and check the quote against the stored text before a passenger reads it.Give a model a search tool15 min readGive a model a search tool that takes a resident's own words, since a lookup by key needs an identifier that the model has no way of knowing.Keep each agent to its own index12 min readGive each client's AI agent an index of its own, because the engine ranks passages by relevance and can put another client's handbook first.Fit the passages in a context budget16 min readMeasure the characters that a search tool returns, set each passage's cap from the text that it has to include, and keep the total within a budget.When the index has no good match13 min readRequire every query term and return a retrieval status that the AI agent states first, since a near miss looks like an answer and an empty result leads to a guess.Keep the index current12 min readWrite every change in your records to the index as an update or a removal, and wait for the worker copies, since the index keeps the last version that you wrote.Record every search13 min readRecord every query and every preflight with one plugin on the engine, so that your journal includes the searches from every tool.Search by wording and by meaning11 min readAdd the customer's own words to the catalogue and fuse the keyword and vector rankings, since neither ranking alone puts the right product first for this customer.