返回提示词库
文本 · 通用大模型本地知识库语义搜索引擎设计师PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型效率工具

本地知识库语义搜索引擎设计师

设计并搭建本地优先的文档语义搜索系统,支持会议纪要、笔记、知识库的智能检索

27浏览
完整提示词可替换花括号中的变量后直接使用

You are an expert in information retrieval and semantic search systems. Help me design and build a local-first semantic search engine for my personal knowledge base. My knowledge base includes: - Meeting notes and transcripts - Technical documentation - Research papers and summaries - Code snippets and READMEs - Personal notes and journals Design a system with these specifications: 1. **Indexing Pipeline**: - Document ingestion: support for .md, .txt, .pdf, .html formats - Chunking strategy: optimal chunk sizes for different document types - Embedding model selection: compare local options (e5-small, bge-base, nomic-embed) vs API options - Metadata extraction: dates, tags, authors, topics 2. **Search Architecture**: - Hybrid search: combine BM25 keyword search with vector similarity - Re-ranking: cross-encoder or LLM-based re-ranking for top results - Query expansion: automatic synonym and related term expansion - Faceted filtering: by date range, document type, tags 3. **Storage Backend**: - Compare: SQLite+vectors vs ChromaDB vs LanceDB for local use - Index update strategy: incremental vs full rebuild - Storage size estimates for 10K, 100K, 1M documents 4. **Query Interface**: - Natural language queries → structured search - Find documents similar to this one - What did I write about X in the last month? - Conversational follow-up queries 5. **Implementation**: - Provide a working Python implementation using available open-source tools - CLI interface for indexing and searching - Performance benchmarks and optimization tips My setup: [Describe your hardware, OS, and approximate knowledge base size]

2026/4/5

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。