A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python.langchain.com/docs/integrations/vectorstores/nucliadb below:

NucliaDB | 🦜️🔗 LangChain

NucliaDB

You can use a local NucliaDB instance or use Nuclia Cloud.

When using a local instance, you need a Nuclia Understanding API key, so your texts are properly vectorized and indexed. You can get a key by creating a free account at https://nuclia.cloud, and then create a NUA key.

%pip install --upgrade --quiet  langchain langchain-community nuclia
Usage with nuclia.cloud
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)
Usage with a local instance

Note: By default backend is set to http://localhost:8080.

from langchain_community.vectorstores.nucliadb import NucliaDB

ndb = NucliaDB(knowledge_box="YOUR_KB_ID", local=True, backend="http://my-local-server")
Add and delete texts to your Knowledge Box
ids = ndb.add_texts(["This is a new test", "This is a second test"])
Search in your Knowledge Box
results = ndb.similarity_search("Who was inspired by Ada Lovelace?")
print(results[0].page_content)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4