完全掌控您的搜尋設定,以獲得最佳結果
調整您的語義比例,以實現 AI 驅動的語義搜尋和全文本搜尋功能之間的理想平衡。

全文本搜尋 ➜
當您確切知道要尋找什麼時,效果最佳

語義搜尋 ➜
當搜尋概念而非僅關注單字時,最為理想

✨ 混合搜尋
結合兩者的優點
打造一流搜尋體驗的最簡單途徑
搜尋進入您的 AI 應用堆疊
Meilisearch 隨附針對您喜愛的框架或語言量身打造的 SDK。

from langchain.vectorstores import Meilisearch
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.document_loaders import JSONLoader
# Load documents
loader = JSONLoader(
file_path="./movies.json",
jq_schema=".[] | {id: .id, title: .title, overview: .overview}",
text_content=False,
)
documents = loader.load()
# Index documents
embeddings = OpenAIEmbeddings()
vector_store = Meilisearch.from_documents(documents=documents, embedding=embeddings)
# Search
query = "superhero fighting villains in a city corrupted by crime"
results = vector_store.similarity_search(
query=query,
k=3,
)
全球有 18,000 名使用者正在使用 MEILISEARCH 來支援他們的搜尋體驗。