InMemoryDocumentStore
该InMemoryDocumentStore 是一个非常简单的文档存储,没有任何额外的服务或依赖项。
它非常适合实验 Haystack,但我们不建议在生产环境中使用它。
初始化
InMemoryDocumentStore 不需要外部设置。只需使用此代码
from haystack.document_stores.in_memory import InMemoryDocumentStore
document_store = InMemoryDocumentStore()
支持的 Retrievers
InMemoryBM25Retriever:一个基于关键字的检索器,可从临时内存数据库中获取与查询匹配的文档。
InMemoryEmbeddingRetriever:比较查询和文档的嵌入,并获取与查询最相关的文档。
更新于 1 年前
