Weaviate(1.7万星)2026:AI原生向量数据库,支持混合搜索与生成式RAG

📘 教程 2026-08-06 约 5 分钟阅读

Weaviate(16,699星)是AI原生向量数据库,带混合搜索、生成式RAG模块和简单部署。本文教你用它构建语义搜索应用。

💡 你将学到

Weaviate(16,699星)是AI原生向量数据库,带混合搜索、生成式RAG模块和简单部署。本文教你用它构建语义搜索应用。

📜 目录

直接给结论

weaviate/weaviate(16,699星,Go)是为AI应用设计的开源向量数据库。它支持向量搜索、BM25关键词搜索和两者结合的混合搜索——还带生成模块,不用另搭LLM管线就能跑RAG。

核心特性

Docker快速开始

docker run -p 8080:8080 -p 50051:50051 \n  -e AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \n  cr.weaviate.io/semitechnologies/weaviate:latest

Python语义搜索

pip install weaviate-client
import weaviate
import weaviate.classes as wvc

client = weaviate.connect_to_local()

questions = client.collections.create(
    "Question",
    vectorizer_config=wvc.config.Configure.Vectorizer.text2vec_transformers(),
)

questions.data.insert({
    "question": "What is a vector database?",
    "answer": "A store that searches by meaning.",
})

result = questions.query.near_text(query="explain vector databases", limit=1)
for obj in result.objects:
    print(obj.properties["answer"])

一个查询搞定RAG

在配置里启用生成模块,然后:

response = questions.generate.near_text(
    query="what is weaviate",
    limit=3,
    single_prompt="Summarize: {question}",
)

实用技巧

FAQ

免费吗? 是——BSD-3开源;Weaviate Cloud是托管选项。

支持本地嵌入吗? 支持——text2vec-transformers或任意自定义向量化器可本地运行。

和Qdrant比怎么样? Qdrant(33,804星)是专注的向量引擎;Weaviate多了内置混合搜索和生成式RAG模块。

相关文章

❓ 常见问题

Is it free?

Yes - BSD-3 open source; Weaviate Cloud is the managed option.

Does it support local embeddings?

Yes - text2vec-transformers or any custom vectorizer runs locally.

How does it compare to Qdrant?

Qdrant (33,804 stars) is a focused vector engine; Weaviate adds built-in hybrid search and generative RAG modules.

相关文章
2026-08-01
笔记本跑LLM:无GPU跑8B模型
2026-07-20
在Mac上本地运行Ollama:Apple Silicon完整指南
2026-07-20
本地大模型Linux部署:在Ubuntu上运行7B到70B模型

本站文章由编辑人工撰写,收录的工具均经过实测或公开资料核验。文中链接指向工具官网或 GitHub 仓库,仅作信息参考,不构成付费推广。

💬 评论 (0)

暂无评论,来说两句吧~

登录后评论