{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "milvus-io-milvus--start-a-vector-db-in-a-local-file",
 "repo": "milvus-io/milvus",
 "repo_url": "https://github.com/milvus-io/milvus",
 "repo_slug": "milvus-io-milvus",
 "title": "Start a vector database in a single local file",
 "page_title": "How to start a vector database in a single local file with Milvus",
 "summary": "Install pymilvus with Milvus Lite and create a collection in a local file, no server needed.",
 "who": "A developer prototyping RAG in a notebook who does not want to run a database server yet.",
 "problem": "Setting up a database server just to try vector search slows down early experiments.",
 "outcome": "A working vector collection persisted to a local .db file that you can later move to a server.",
 "steps": [
  "Install the SDK with `pip install -U pymilvus`, and pymilvus[milvus-lite] for Milvus Lite",
  "Create a local database with `MilvusClient(\"milvus_demo.db\")`",
  "Create a collection with `client.create_collection` using your embedding dimension, for example 768",
  "Insert your embedded data with `client.insert`",
  "Search with `client.search`, setting limit and output_fields"
 ],
 "agent_prompt": "Using milvus-io/milvus with Milvus Lite, create milvus_demo.db, embed <documents> with <model>, create a collection with the right dimension, insert them, and search for <query>. Show me the top 3 results with their text.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "Milvus Lite is for quickstarts; move to a Milvus server or Zilliz Cloud for production scale.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "Python and the pymilvus SDK",
  "Milvus Lite for a local file, or a deployed Milvus server or Zilliz Cloud with credentials",
  "An embedding model to create vectors"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/milvus-io-milvus/start-a-vector-db-in-a-local-file/",
 "md": "https://dedupedai.com/use-cases/milvus-io-milvus/start-a-vector-db-in-a-local-file/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/milvus-io-milvus--start-a-vector-db-in-a-local-file.json",
 "api_version": "v1"
}
