DocsContext & knowledge

Semantic search: finding files with one sentence

Updated December 5, 20262 min readsemantic searchretrieval
In this section: Context & knowledgeAll docs →

Once a project runs long, details like clothing color defy file names and keywords. Semantic search matches meaning and returns the most relevant files.

How to use it

  1. Open search (left sidebar or quick search) and switch to "Semantic search".
  2. Describe what you need in plain language, for example:
    • "the scene where Wang Er first meets his master"
    • "which chapter mentions the quarantine station pass"
    • "foreshadowing about the mother's illness"
  3. Results are ranked by relevance and show the file name, the matching position, and the modification time.
  4. Open a result to read the full text, or have the agent work from it.
Plain searchSemantic search
MatchingFile name / keywordMeaning
Best forYou remember the name and want an exact fileYou remember the plot and want a lead
ResultsExact hitsRanked by relevance, often several candidates

The two work well together: use semantic search to locate chapters, then plain search to find a specific word inside the file.

When it helps most

  • Recovering early foreshadowing in a long serial;
  • Finding cross-project settings when several books share a world;
  • Looking material up by topic in a Knowledge Base project;
  • Answering "did I already write this setting?".

Cost and limits

  • Semantic search uses a model to judge relevance; it is a light request and costs less than drafting prose.
  • Result quality depends on how much text the project holds: with very little content, keyword search is still better.
  • Search covers the current project only; open other projects separately.

FAQ

A chapter I need is missing from the results?

Describe it differently: phrase the scene as who did what rather than an abstract idea, and make sure the chapter was saved.

Does search change files?

No, semantic search is read-only.

How is it different from the agent reading files?

Semantic search locates files for you; the agent reads files to write content. Once you know the exact chapters, have the agent read only those, instead of pulling the whole book into context.

Was this page helpful?

Related reading