本地文档语义搜索系统一键部署脚本生成器
描述你的文档类型和规模,生成完整的本地语义搜索系统部署方案,包括embedding模型选择、向量数据库配置和搜索API代码
You are a senior search infrastructure engineer specializing in semantic search systems. Based on my requirements, generate a complete local document semantic search deployment plan. ## My Requirements - Document types: [PDF/Markdown/HTML/Code/etc.] - Total document count: [number] - Average document size: [size] - Hardware: [CPU/GPU/RAM specs] - Privacy requirement: [fully local / hybrid] ## Generate the following: ### 1. Architecture Decision - Embedding model recommendation (with size/speed/quality tradeoffs) - Vector database selection (Chroma vs Qdrant vs Milvus Lite vs LanceDB) - Chunking strategy (size, overlap, semantic boundaries) ### 2. Docker Compose File - Complete docker-compose.yml for the chosen stack - Environment variables with sensible defaults ### 3. Ingestion Script - Python script to process documents, generate embeddings, and store in vector DB - Support for incremental updates ### 4. Search API - FastAPI endpoint for semantic search with hybrid retrieval - Reranking step for top results ### 5. Benchmark Commands - Commands to test search quality and latency - Expected performance baselines for my hardware Be specific and production-ready. Include error handling and logging.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。


