Start here / Install + search

Your first start.
Your first search.

Create your settings file, connect Qdrant and let the app choose the hardware and models. Then import a small sample and find your first useful passage.

Start with your AI agentPrompt 01

Let your agent
handle the setup.

Open this project in Claude Code, Codex or your preferred AI agent, with access to local files and a terminal. Copy the prompt into its chat to get started.

One brief. A working app.

Start the app with auto, connect its MCP server and install the skill. Verify readiness and a first search from your agent.

Read the full setup prompt
Set up Smart Semantic Searcher in this repository, connect my AI agent to the app's MCP server, install its skill and verify a first search. Carry out the setup.

1. Work from the repository root. Follow AGENTS.md. Read scripts/README.md, .env.example, smart-qdrant-mcp-server/README.md and smart-skill/README.md. Check git status and preserve existing changes. Detect the OS, shell and agent client; ask which client to configure only if unclear. Check the documented prerequisites and local Docker engine. Report the exact next action if a prerequisite blocks you.

2. Create .env from .env.example only if absent. Preserve existing settings and secrets. Ensure MCP_SERVER_ENABLED=true and EMBEDDER_ONLY=false so the middleware and MCP server are included. Keep the other supplied defaults for a fresh installation; do not put auto in .env or change hardware/model settings.

3. Qdrant runs separately, locally or in the cloud. Determine the existing instance to use; ask for its location and endpoint if needed. Keep the supplied QDRANT_URL only if it reaches my local instance; otherwise update it. If QDRANT_API_KEY is required and missing, ask me to enter it directly in .env, never in chat. Never expose secrets. Use an endpoint accessible to Docker containers and verify it from the running app in step 5. Do not provision a cloud database or modify existing collections.

4. Start with only auto: Windows: pwsh stack.ps1 up auto; if pwsh is unavailable, use .\stack.ps1 up auto from Windows PowerShell 5.1 or newer. Linux or macOS: bash stack.sh up auto. Add no extra startup flags; let the root launcher select hardware and models.

5. Allow time for image builds, model downloads and preparation. Check status, logs and documented readiness endpoints, including Qdrant connectivity, until the app is healthy or diagnose a failure. A startup exit code or printed URL alone does not prove readiness.

6. Register the app's smart-qdrant-mcp-server in my chosen agent client as smart-qdrant-mcp, using Streamable HTTP. For an agent on this computer with the supplied settings, the URL is http://127.0.0.1:6337/mcp. Derive the actual endpoint from MCP_BIND_HOST and MCP_PORT; another machine's loopback is not this computer. Preserve other client entries and reuse an existing matching connection. Follow the client's documented configuration format. Keep current authentication: omit a bearer only when the configured local unauthenticated mode permits it; otherwise use an MCP credential through the client's supported secret mechanism, never a Qdrant or middleware token. Do not expose the service publicly to make it reachable.

7. Install the complete smart-skill/smart-qdrant-mcp directory, including SKILL.md and references/, in the chosen client's documented skills directory. For a personal installation, Codex uses ~/.agents/skills/smart-qdrant-mcp and Claude Code uses ~/.claude/skills/smart-qdrant-mcp. Compare an existing installation before updating it and preserve local customizations. Use the host's skill-loading mechanism to load smart-qdrant-mcp and its relevant references; copying files alone does not prove the skill loaded.

8. Reload the MCP connection and skill, or tell me exactly how to reopen the agent if the current session cannot discover them. Verify that the client's live tools include qdrant_check_health and call it with params {"response_format":"json"}. Confirm ready is true. If the tools or skill remain unavailable, report the specific blocker and do not claim the integration succeeded.

9. With the skill loaded and MCP connected, use the MCP tools to follow guide/getting-started.html#walkthrough: create a demo collection with an unused name, ingest only the supplied four-passage sample and run its example query. Follow the live tool schemas and the skill's workflow; preserve existing collections. A direct REST call does not prove that the agent's MCP connection works.

10. Report what changed, readiness evidence, the console and MCP URLs, the installed skill path and loading evidence, and the demo collection, query and result. Clearly state anything you could not complete.
Have a local or cloud Qdrant instance ready. The agent will ask for any missing connection details. Prefer a manual setup? Follow the Windows and Linux steps below.
Smart Semantic Searcher / From installation to your first search
01 / Install and start

One settings file.
One start command.

Use the supplied defaults for your first run. The only startup option you need here is auto: the launcher chooses the hardware and model family for you.

Before you begin: have the project folder on this computer, Docker running with Compose 2.24.4 or newer, and Python 3.10 or newer installed. Open a terminal in the folder containing stack.ps1, stack.sh and .env.example. On Windows, use PowerShell 7 or the PowerShell 5.1 alternative below; Linux and macOS use Bash. Check the prerequisites ↗.

  1. 01 / Your settings

    Create the .env file.

    Copy .env.example to .env in that same folder. The commands alongside do this only if .env does not already exist. If you already have one, keep it.

    Open .env in a plain-text editor. Keep the filename exactly .env, not .env.txt.

    Windows PowerShell 7

    if (-not (Test-Path -LiteralPath .env)) { Copy-Item .env.example .env }

    Linux / macOS Bash

    if [ ! -e .env ]; then cp .env.example .env; fi
  2. 02 / Your vector database

    Choose where Qdrant
    runs.

    Qdrant stores your searchable documents. Either let this stack start its own instance, or point it at one already running locally or in the cloud.

    For an existing instance, confirm it is available and its network rules let this computer’s Docker containers connect to it.

    Let the stack run Qdrant

    In .env, switch on the bundled database and give it a key:

    QDRANT_BUNDLED=true
    QDRANT_API_KEY=choose-a-private-key

    The launcher starts Qdrant next to the middleware and connects them. Nothing else to install; the data stays in a Docker volume on this computer.

    Qdrant on this computer

    If it is reachable on the usual port, keep the supplied address:

    QDRANT_URL=http://host.docker.internal:6333

    This address lets the application reach your computer from Docker. If your local instance uses a different address or port, update this value too.

    Qdrant in the cloud or elsewhere

    In .env, replace QDRANT_URL with the endpoint supplied by your Qdrant provider or administrator.

    If the instance requires a key, put it in QDRANT_API_KEY. Use the database’s key here; keep it private. Save the file.

    Help with the database connection ↗
  3. 03 / Start the application

    Let auto choose.

    Run the command for your terminal. auto selects the hardware and models for this start. Leave the profile values in .env as supplied; do not replace them with auto.

    The first run builds the application, downloads models and prepares them for your machine. Let the command finish. The stack keeps running in the background after the command returns.

    Windows PowerShell 7

    pwsh stack.ps1 up auto

    If pwsh is unavailable, run .\stack.ps1 up auto in Windows PowerShell 5.1 or newer.

    Linux / macOS Bash

    bash stack.sh up auto

    Next: open the console below. Services may still be starting when the command returns; wait for HEALTHY before importing the sample. If startup reports an error, use the startup help.

  4. 04 / For your AI agent

    Connect the app’s MCP.

    The server in smart-qdrant-mcp-server/ gives your agent the app’s search and management tools. Connect the client you actually use, such as Codex or Claude Code.

    Using only the browser console? You can continue to the console. These last two installation steps are for agent access.

    One local MCP connection

    Name: smart-qdrant-mcp
    Transport: Streamable HTTP
    Server URL, with the supplied settings:

    http://127.0.0.1:6337/mcp

    The template already sets MCP_SERVER_ENABLED=true and EMBEDDER_ONLY=false. Keep both for agent access. If you changed them in an existing .env, apply the edit with the same up auto command above.

    This address works for an agent on the same computer. If you changed MCP_PORT, use that port. A cloud-hosted agent cannot reach your computer through its own 127.0.0.1; see the connection and deployment guide.

    With your agent’s CLI installed, run its command below from the project root. These examples use the supplied local configuration, which permits access without a token. They register the server in your personal client configuration. If it is already registered, reuse or edit that entry.

    Connect Codex

    Windows PowerShell

    codex mcp add smart-qdrant-mcp --url http://127.0.0.1:6337/mcp

    Linux / macOS Bash

    codex mcp add smart-qdrant-mcp --url http://127.0.0.1:6337/mcp

    Codex keeps personal MCP connections in ~/.codex/config.toml. Its MCP settings also support entering the server URL directly. Official Codex MCP setup ↗

    Connect Claude Code

    Windows PowerShell

    claude mcp add --transport http --scope user smart-qdrant-mcp http://127.0.0.1:6337/mcp

    Linux / macOS Bash

    claude mcp add --transport http --scope user smart-qdrant-mcp http://127.0.0.1:6337/mcp

    --scope user makes this connection available to your Claude Code projects on this computer. Official Claude Code MCP setup ↗

    Already configured authentication, or using another client?

    Keep your existing authentication. For static authentication, supply a raw token from MCP_API_TOKENS as an Authorization: Bearer header, without its :label suffix. Use the client’s supported secret or environment-variable mechanism; keep real tokens out of chat and shared configuration. Codex supports --bearer-token-env-var; the named variable must be available to the Codex process. OAuth deployments follow the configured provider’s flow.

    For another compatible client, enter the same name, Streamable HTTP transport and reachable MCP URL in its MCP settings. A Qdrant key or middleware key is a different credential. Server connection reference ↗ · MCP credentials ↗

    Reopen your agent session or reload its MCP connections, then check its connected-server list. In the Codex CLI and Claude Code, /mcp shows the connection. Next, install the skill below.

  5. 05 / Give your agent the instructions

    Install the supplied skill.

    smart-skill/ contains the smart-qdrant-mcp skill. It governs every Qdrant MCP call and carries the best practices the tools alone do not: how to choose tools, search and handle the app’s workflows.

    Copy the whole smart-skill/smart-qdrant-mcp directory, including SKILL.md and references/. The skill loads in the agent client; it needs the MCP connection from the previous step.

    Skill installation reference ↗

    Choose your client and run the matching command from the project root. These personal installations are available across your projects. If a destination already exists, the commands keep it: compare its contents with the supplied skill before updating it.

    Install for Codex

    Destination: ~/.agents/skills/smart-qdrant-mcp. Here ~ means your home folder.

    Windows PowerShell

    $skillTarget = Join-Path $HOME '.agents\skills\smart-qdrant-mcp'
    if (Test-Path -LiteralPath $skillTarget) {
      Write-Output 'Skill already exists. Compare it with the supplied copy.'
    } else {
      New-Item -ItemType Directory -Force (Split-Path -Parent $skillTarget) | Out-Null
      Copy-Item -LiteralPath 'smart-skill\smart-qdrant-mcp' -Destination $skillTarget -Recurse
    }

    Linux / macOS Bash

    skill_target="$HOME/.agents/skills/smart-qdrant-mcp"
    if [ -e "$skill_target" ] || [ -L "$skill_target" ]; then
      printf '%s\n' 'Skill already exists. Compare it with the supplied copy.'
    else
      mkdir -p "$(dirname "$skill_target")"
      cp -R smart-skill/smart-qdrant-mcp "$skill_target"
    fi

    Reopen Codex if the skill has not appeared. In the CLI or IDE, select it with $smart-qdrant-mcp or through /skills. Official Codex skill setup ↗

    Install for Claude Code

    Destination: ~/.claude/skills/smart-qdrant-mcp. Here ~ means your home folder.

    Windows PowerShell

    $skillTarget = Join-Path $HOME '.claude\skills\smart-qdrant-mcp'
    if (Test-Path -LiteralPath $skillTarget) {
      Write-Output 'Skill already exists. Compare it with the supplied copy.'
    } else {
      New-Item -ItemType Directory -Force (Split-Path -Parent $skillTarget) | Out-Null
      Copy-Item -LiteralPath 'smart-skill\smart-qdrant-mcp' -Destination $skillTarget -Recurse
    }

    Linux / macOS Bash

    skill_target="$HOME/.claude/skills/smart-qdrant-mcp"
    if [ -e "$skill_target" ] || [ -L "$skill_target" ]; then
      printf '%s\n' 'Skill already exists. Compare it with the supplied copy.'
    else
      mkdir -p "$(dirname "$skill_target")"
      cp -R smart-skill/smart-qdrant-mcp "$skill_target"
    fi

    Reopen Claude Code if necessary, then invoke /smart-qdrant-mcp. Official Claude Code skill setup ↗

    For another agent, use its documented skill import or skills directory and include the reference files. Confirm it supports Agent Skills; an MCP connection alone does not load the skill.

    Verify from your agent

    After loading the skill, send this read-only request in the same client you connected:

    Use the smart-qdrant-mcp skill. Call qdrant_check_health with params {"response_format":"json"}. Report whether ready is true. Do not change collections.

    You are ready when the agent has loaded the skill, can call the MCP tool, and the response reports ready: true. A saved configuration or copied folder alone does not confirm that. If tools are missing, check the connection, authentication and client reload. Then try the four-passage sample and first search.

This first-run path assumes the supplied template. It enables the console and allows local access without an API key. Before using real data, follow the access-key setup. The full automatic-start contract is in the launcher reference.

02 / Open the application

Open the console.
Check you are ready.

The console is the app’s browser interface. A collection is a named set of searchable passages, such as a handbook or a project’s notes.

01 / Open

Go to your app.

If the stack is running on this computer, the default console address is http://127.0.0.1:6336. For a managed installation, use the address supplied by its operator.

Open the local console ↗
02 / Sign in when needed

Register your API key.

If access requires a key, choose API key in the top bar, enter the console key your operator gave you, and select Register. The key belongs to the middleware, not to Qdrant.

Resolve an access problem ↓
03 / Check

Look for HEALTHY.

The connection bar checks Qdrant and Smart Embedder. If it shows UNHEALTHY or UNAVAILABLE, open Monitoring. After the problem is resolved, choose Re-test.

If the app is still starting ↓
Collections
Create a collection and review what it contains.
Points
Add and manage the individual passages in it.
Query
Search for passages or browse them with filters.
Monitoring
Check the services when something is not working.
03 / Follow along

One small collection.
Your first useful search.

Use the four passages in our sample handbook. Follow each step in the real console; the panels below illustrate what to look for.

The first-search walkthrough

6 steps · at your pace

01 / Collections

Give your example
a home.

  1. Open Collections → Create / Recreate.
  2. Enter a new name, such as guide_demo. Keep the supplied settings and leave recreate unchecked.
  3. Choose Submit create/recreate, then select the new collection in Active collection in the connection bar, just below the tabs.

What to checkThe active collection is guide_demo. If that name already exists, choose another new name for this exercise.

Illustrated console / example values

QueryCollectionsPointsMonitoring
collection_name
guide_demo

recreate (DESTRUCTIVE) — unchecked

Submit create/recreate
Active collection · after creation
guide_demo

Recreate deletes existing contents. It is not how you add another document.

02 / Your sample file

Start with four
short passages.

  1. Download the sample handbook below. Keep its name: team-handbook.json.
  2. Each entry contains a passage of text, a number that identifies it within the file, and a few useful labels.
  3. Use this prepared example first. Once the workflow is familiar, replace it with your own documents.

What to checkYou have a .json file. The console imports prepared text passages; PDF and Word files need to be converted first.

The example you will import

team-handbook.json4 passages · fictional example content
  1. 00 Remote work
  2. 01 Annual leave
  3. 02 Equipment support
  4. 03 Office visitors

Each passage has id, text, title and topic. You do not need to generate vectors yourself.

03 / Points → Ingest

Check the file.
Then import it.

  1. Check Active collection, then choose Points → Ingest → Upload file.
  2. Select the sample. Its automatic check should show 4 valid passages and 0 invalid. Keep the default field names and types.
  3. Leave Create payload indexes for typed fields after ingest checked, and choose Confirm & ingest.

What to checkWait for the import to complete. Check the separate index result too: those indexes make fields such as topic available for filtering.

Illustrated console / Points → Ingest

✓ Preflight passed — file ready to ingest
4chunks
4valid
0invalid
target collection
guide_demo
source file
team-handbook.json

Create payload indexes for typed fields after ingest

Confirm & ingest

Selecting a file checks it. Confirming sends its passages to your collection.

04 / Query

Ask a question
in your own words.

  1. Open Query with your example collection still selected.
  2. In query, enter: How many days a week can I work from home?
  3. Keep the defaults, including rerank checked. Start without filters or a score threshold, then select Run hybrid query.

What to checkRead the returned passages. A result about the remote-work policy should be relevant; the exact order and scores depend on your models.

Illustrated console / Query

query
How many days a week can I work from home?
limit
10
candidate_limit
50

rerank

Run hybrid query

An empty query switches to browsing by fields; when ready, the button reads Retrieve points. Type a question when you want a relevance-ranked search.

05 / The returned passages

Read the text.
Keep its source.

  1. Read the passage itself, including conditions such as with your manager’s agreement.
  2. Open Payload JSON to inspect its stored labels. In this example, source_id identifies team-handbook and title identifies the policy.
  3. Use Vector Score and Rerank Score as ranking signals, not percentages of truth.

What to checkThe text answers your actual question and comes from the source you intended. A high rank alone does not make a passage correct or current.

An example of a relevant result / order may vary

Remote work
“Our remote-work policy allows up to two days a week from home, with your manager’s agreement. The policy applies to all employees.”
source_id: team-handbooktitle: Remote worktopic: workplace

The source is a stored label. It is not automatically a link to the original file unless your data includes one.

06 / Query → Payload Filters

Narrow the source
when it matters.

  1. In Payload Filters, choose + Condition.
  2. For this sample, select topic, choose equals, enter workplace and keep the condition in MUST.
  3. Choose Run hybrid query to run the question again. To browse all matching passages instead, clear query and choose Retrieve points with the same filter.

What to checkReturned passages match topic: workplace. If the field is unavailable, check the index result from the import.

Illustrated console / one filter condition

field
topic
operation
equals
value
workplace
condition group
MUST
Run hybrid query

Question + filter: search within this topic.
Filter alone: browse matching passages without relevance scores.

This walkthrough is an illustration. It does not connect to your app or change a collection. Use the matching controls in your console to follow along.

A small file. A complete practice run.

The sample has four fictional handbook passages, ready for Points → Ingest. Keep it in its own practice collection.

Download the sample team-handbook.json · 4 passages · 868 bytes
How do I prepare my own documents?
  1. Extract readable text. Convert PDF, Word or other source files outside the console. Scans need text recognition first.
  2. Split it into useful passages. Keep one topic or answer together, with enough context to understand it. The app stores the passages you provide; it does not split whole documents for you.
  3. Save a JSON file. Use a chunks list. Each passage needs a unique integer id within the source and non-empty text. Optional fields such as title and topic help you identify and filter results.

The sample’s complete format:

{
  "chunks": [
    {
      "id": 0,
      "text": "Our remote-work policy allows up to two days a week from home, with your manager's agreement. The policy applies to all employees.",
      "title": "Remote work",
      "topic": "workplace"
    },
    {
      "id": 1,
      "text": "To request annual leave, enter the dates in the HR portal and wait for your manager's approval before booking travel.",
      "title": "Annual leave",
      "topic": "leave"
    },
    {
      "id": 2,
      "text": "Report a broken laptop to the IT help desk. Include the asset number and a description of the issue.",
      "title": "Equipment support",
      "topic": "equipment"
    },
    {
      "id": 3,
      "text": "Office visitors must sign in at reception and wear a visitor badge while on site.",
      "title": "Office visitors",
      "topic": "workplace"
    }
  ]
}

Keep the filename and passage IDs stable when updating this source. Give different documents different filenames. Read how updates work ↓

05 / Look after your collection

Keep the text current.
Know what each action changes.

Most daily work is adding, finding and reviewing passages. Updates, exports and deletion each have a different purpose.

Update a source

Keep its identity stable.

Import the updated file with the same filename and the same passage IDs. Matching passages are overwritten; new IDs add new passages.

A shorter file does not remove old passages that you left out. Renaming the file gives it a new source identity and can create duplicates.

Save a copy

Choose the right export.

Collections → Export collection to JSON downloads the selected collection’s stored text and fields to your browser. Vectors are not included.

In Query, select Download results as JSON before running to save results instead. An export is not a full database backup.

Remove deliberately

Read the target twice.

Delete collection removes an entire collection. Recreate replaces it with an empty one. Both are destructive.

To remove individual passages, use Points → Delete and verify the IDs or filter first. Check the active collection before confirming.

What if an import stops halfway through?

The console imports a file in batches, so an error can leave earlier batches stored. Read the progress message, resolve the cause, then select and import the same file again with the same filename and IDs. Matching passages are overwritten rather than duplicated. Do not switch the active collection during the import.

If only index creation failed, the passages may already be stored. Read the separate index report and fix the affected index; importing the file again is not the first remedy.

The models changed and my collection is incompatible. What now?

A collection must match the models used to search it. If the console reports a mismatch, ask the operator to restore the original profile or plan a migration. Creating a new collection and importing the source texts is often the clearest route.

Collections → Re-embed Vectors has a read-only preflight that explains whether regeneration is possible. It is a maintenance operation, not a routine search step. Understand model profiles and your setup ↗.

Can I import a collection export as a backup?

An export contains stored fields, not the original vectors or a complete Qdrant snapshot. Restoring it needs preparation: remove point_id, ensure each passage has an appropriate unique integer id, and preserve the intended source identities. A single console import uses its filename as the source, so uploading a multi-source export unchanged does not preserve the original source grouping.

Keep your original source files. For a full backup or migration, use the operator’s ingest and export reference.

Check the collection.
Read the passage.
Keep the source.

These three checks matter more than a high score. Good source material and a few repeatable questions make it easier to spot a useful result.
06 / When something does not work

Start with the visible clues.

Read the message in the console before trying again. These checks cover the most common first-run problems.

The page will not open, or the services are not healthy.

Confirm the stack is running, the console is enabled and you are using the correct address. First-time model download and hardware preparation can take a while.

If the console opens, inspect Monitoring to see which service is unavailable. Check startup progress and the Qdrant connection, then choose Re-test. The CLI troubleshooting guide explains the next checks.

I see an access error or “401”.

Open API key, register the middleware console key supplied by your operator and try again. Use the raw key, without a Bearer prefix. A Qdrant key or MCP key is a different credential.

A healthy status does not prove that protected operations are authorized. If registration still fails, ask the operator to verify the console credential.

No collection is selected, or an action is disabled.

Choose the intended collection in Active collection in the connection bar, just below the tabs. The collection_name field within Query is only a display of that selection.

If there are no collections, create one. If controls remain disabled, read the readiness, compatibility or maintenance message beside them instead of trying to bypass it.

Upload is rejected, or “Confirm & ingest” is unavailable.

Use a JSON object containing a chunks list. Every passage needs an integer id and non-empty text. Correct the errors reported by the file check or field mapping.

PDF, Word and a plain list of strings are not the expected format. Try the provided sample to separate a file-format problem from an app problem.

The search returns nothing useful.

Check the active collection and its count in Collections → Report. Confirm the import completed and the collection is compatible.

Then remove filters and any score threshold, enter a clear question, and run it again. Only widen candidate_limit after checking that the text you need is actually stored. See the search-quality tradeoffs ↗.

Results show numbers or labels, but no passage text.

In Returned Payload, include text and the source fields you want to see, then rerun the query. You can inspect stored fields under Payload JSON in a result.

With an empty query, the console browses records and does not show relevance scores. Neither mode writes a conversational answer for you.

07 / Go one level deeper

The next explanation,
when you need it.

This page takes you from installation to your first search. These companion guides explain more CLI options, environment settings and the system behind the results.

Technical references for the person running the app

Search and embedding run where your services are hosted. If you connect an agent that uses a cloud model, questions and returned passages can cross that boundary. Review the setup and data-boundary guide with the operator.