DocsContext & knowledge
Semantic search: finding files with one sentence
Updated December 5, 20262 min readsemantic searchretrieval
In this section: Context & knowledge
- Context management: what the AI reads each request
- Smart context: helping the AI remember long-form progress
- Context compaction: how long conversations continue
- Knowledge base and cloud drive: working with non-fiction
- Semantic search: finding files with one sentence
- Smart chapter analysis: import a whole book and split it into chapters
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
- Open search (left sidebar or quick search) and switch to "Semantic search".
- 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"
- Results are ranked by relevance and show the file name, the matching position, and the modification time.
- Open a result to read the full text, or have the agent work from it.
How it differs from plain search
| Plain search | Semantic search | |
|---|---|---|
| Matching | File name / keyword | Meaning |
| Best for | You remember the name and want an exact file | You remember the plot and want a lead |
| Results | Exact hits | Ranked 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?