我们已完成 1.25 亿美元的 B 轮融资,用于构建代理工程平台。阅读更多。
Python
pip install -qU langchain langchain-community nuclia
from langchain_community.vectorstores.nucliadb import NucliaDB API_KEY = "YOUR_API_KEY" ndb = NucliaDB(knowledge_box="YOUR_KB_ID", local=False, api_key=API_KEY)
backend
https://:8080
from langchain_community.vectorstores.nucliadb import NucliaDB ndb = NucliaDB(knowledge_box="YOUR_KB_ID", local=True, backend="http://my-local-server")
ids = ndb.add_texts(["This is a new test", "This is a second test"])
ndb.delete(ids=ids)
results = ndb.similarity_search("Who was inspired by Ada Lovelace?") print(results[0].page_content)
此页面有帮助吗?