Search a project by meaning with a local model
Turn on semantic project search, index your code with a local embedding model, then search by meaning or exact text and add passages to a request.
On this page
What it is and what it needs
- A project that is a Git worktree on the computer running the agent
-
An embedding model already installed and running in a local model server that
answers at
/v1/embeddingson a loopback address (for example Ollama) - Permission as an Owner to configure and index
Search is off by default. Amble never downloads a model, starts one, crawls on startup
or watches files. Only a loopback address works (localhost is read as
127.0.0.1), and the request uses no account keys or cookies. See
Local models for running one.
Enable and index a project
-
Open Semantic search
Open Project context from a conversation and choose the Semantic search tab.
-
Enter the local model
Under Local model setup, enter the Local embeddings endpoint and Installed embedding model, then choose Save local setup. Saving turns the index off and clears the old one.
-
Index
Choose Enable and index project. Later, Reindex changed files refreshes only what changed. Cancel search or indexing stops work, and Turn off and clear index removes it.
One run covers up to 256 files and 256 passages, and ignored, hidden, generated and lock files are skipped. Larger projects are partly indexed. The panel shows real counts and says when files were skipped or are stale.
Search and use results
Pick Hybrid, Meaning or Exact text, type a query and read the results. Each result cites a file, line range and revision. Hybrid mixes meaning with identifiers and paths, and Exact text doesn’t send the query to the model.
Select passages and choose Add selected passages to request. At most twelve are re-read from the current files and added to your unsent draft. You still send it yourself. Rankings show relevance, not whether an answer is correct.
A bounded retrieval panel in the same area helps a delegated worker gather cited
evidence in three rounds. It can’t enable indexing. An agent with the
semantic_project_search tool can read status and search, but can’t
configure or index.
Check that it worked
It worked when the panel shows indexed files and passages, and a search returns results with file paths and line ranges.
- Search could not finish.
- Check that the local model server is running and the project is open on the right computer, then retry. Changed files need reindexing.
- The panel says unavailable.
- An older computer doesn’t support semantic search. Update Amble there.
- Results look stale or incomplete.
- A partial or stale index isn’t complete. Reindex changed files, and don’t treat a missing hit as proof something doesn’t exist.
See Project context.