Questions tagged [weaviate]

Weaviate is an open source vector database that stores both objects and vectors, allowing for combining vector search with structured filtering and CRUD operations. It supports modules such as creating embeddings or generating responses via OpenAI, and is accessible through GraphQL, REST, and various language clients.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Using LangChainJS to connect to Weaviate in Docker, why is the connection refused?

I'm trying to use Weaviate as a vector store in an app I'm putting together, I'm running both Weaviate and my NodeJs server in containers on a default Docker Compose network. They are connecting but ...
JSDevGuy's user avatar
  • 127
1 vote
1 answer
20 views

How to add an openai API key in a weaviate GraphQL command on the cloud console?

I want to do a similiarity search like this: { Get { ResultItem( limit:3 nearText: {concepts: ["hacking attack on company"]} ) { title, url, snippet } } } ...
Martin Seeger's user avatar
-2 votes
1 answer
15 views

Is tenant data removed from disk when deleting the tenant?

We need to observe GDPR data privacy laws. When we call client.schema_remove_class_tenants(), we can confirm that a subsequent query does not find the tenants data (trying with the tenant name and ...
Alex Panagides's user avatar
-2 votes
0 answers
18 views

Does the Weaviate Python client work with free sandboxes?

Trying to run the ChatGPT Retrieval Plugin demo with the free 2-week instance. On writes, I either get 401 -- if I setup the DB with no auth, or another auth error if I set it up with auth enabled and ...
Nikolay Valtchanov's user avatar
0 votes
1 answer
19 views

Weaviate img2vec-neural Google Cloud Run

I'm currently playing around with weaviate. The goal is to make an image search engine for similar product images. I am now running it locally on docker desktop and everything works great. Weaviate ...
backwashphili's user avatar
0 votes
0 answers
27 views

How to solve forbidden error when creating objects?

I am using python client to create object json_data = { "class": class_name, "properties": {"text": text}, } r = requests.post(WEAVIATE_HOST + "/v1/objects&...
max's user avatar
  • 1
0 votes
0 answers
34 views

How do I get Weaviate running on HTTPS using Docker compose?

I can't get Weaviate running on HTTPS in Docker. I've been running Weaviate successfully on Docker over HTTP for a while. I'm at the end of app development and want to secure the entire stack as best ...
J.D. Ray's user avatar
  • 697
0 votes
0 answers
23 views

Weaviate conditional filter throws "... invalid search term, only stopwords provided"

I have a Profile class with a property industry with the following possible values: Marketing Engineering IT Education everything is almost OK not until I tried filtering the "IT" industry ...
junbetterway's user avatar
0 votes
0 answers
9 views

Weaviate db keeps increasing insize, dues to commitlog.d folder. Can I remove it?

I recently found out that my weaviate db is increasing in size everytime I do batch update (adding items and remove items), although the total number of items remains relatively the same. The issues ...
digdug's user avatar
  • 459
0 votes
1 answer
143 views

Error "'tuple' object has no attribute 'page_content'" when using Weaviate.add_documents

I have the following piece of code: if file.filename.lower().endswith('.pdf'): pdf = ep.PDFLoad(file_path) # this is the loader from langchain doc = ...
Gonzapepe's user avatar
1 vote
1 answer
32 views

Replace imageUrl field in json with base64 encoding of the related image

I need to import a large set of data into my weaviate DB, for it to work I need my images base64 string encoded. I've got the following .json file with a list of objects exported from SQL: [ { ...
Johannes Schober's user avatar
1 vote
1 answer
73 views

How to use a vector database to find matches between users?

I have an app where users can sign up and fill out a profile. This profile consists of 16 questions that can be answered using a slider. Each "answer" for a question can be between -3 and 3 (...
Andre Zimpel's user avatar
  • 2,323
0 votes
1 answer
36 views

How to add a property to existing class definition with default value in Weaviate?

The documentation on how to update an existing class to add a new property is clear in Weaviate documentation: REST - /v1/schema | Weaviate - vector database However, what if I wanted to add a ...
junbetterway's user avatar
1 vote
1 answer
73 views

How to run it weaviate after setting embbeded client

I am first time using weaviate and typsecript as well. I have set all options in embeded client: const client: EmbeddedClient = weaviate.client( new EmbeddedOptions({ port: 7878, version: '1....
starskiin3d's user avatar
0 votes
1 answer
111 views

Is it impossible to paginate filtered results with the Weaviate vector DB?

Query Filter Works Using Weaviate's query filtering works fine, e.g. from their tutorial: response = ( client.query .get("JeopardyQuestion", ["question", "answer",...
kdbanman's user avatar
  • 10.2k
1 vote
1 answer
106 views

Optimizing Weaviate for Image Embedding Search without Storing Images

I’m currently working on a project where I’m using Weaviate as a vector database to store and search for images based on their embeddings. The images themselves are stored in an S3 bucket. My goal is ...
Mansur's user avatar
  • 192
2 votes
0 answers
64 views

Cannot Add Tenancy to Weviate Class

I have a local instance of weaviate running on my machine. I am trying to enable multi-tenancy by following this guidance and by utilizing this code: client.schema.create_class({ 'class': '...
Lizzard28's user avatar
0 votes
0 answers
21 views

Is it possible to pass additional HTTP headers along with Weaviate module requests using the python client?

Is it possible to force a Weaviate module to pass additional headers along with requests? e.g. we can initialize the python weaviate client with additional_headers client = weaviate.Client( '<...
kdbanman's user avatar
  • 10.2k
0 votes
0 answers
33 views

Weaviate is not automatically creating a schema

`Map<String, Object> dataSchema = new HashMap<>(); dataSchema.put("labelName", "Images"); dataSchema.put("image", encodedString); Result<...
Jubair Samir's user avatar
0 votes
0 answers
27 views

Getting uuids of references with Get filtering

I understand one can get the uuid of an object using .with_additional([id]). Let say now, I request references as well for example: where_filter = { "path": ["name"], "...
Junior Hechinger's user avatar
0 votes
0 answers
156 views

How to add Prompt in retriver in Retrievalqa in langchain

i am trying to use retrievalqa from langchain to implement a chatmodel.while using the retrievalQA i get know that there is no option to add the retrival. how to add the retrieval in retrivalqa ...
Abhiram T Babu's user avatar
0 votes
0 answers
41 views

How can I update a property inside a weaviate schema?

How can I update an already defined property inside a weaviate schema? I am expecting to know whether weaviate has already described any updates regarding the property updates inside a schema without ...
Chelsia Joy's user avatar
0 votes
2 answers
78 views

Weaviate - push records in batch errors with JSONDecodeError

I’m trying to add records in a batch, but after I add my objects to the batch, I always get a JSONDecodeError when I assume the batch is being sent to my Weaviate class. client.batch.configure(...
lrthistlethwaite's user avatar
0 votes
0 answers
33 views

close weaviate client ts nodejs

I was looking for a way to close a weaviate client in nodejs typescript as I need to do this so I can implement a jest test I have looked in the index.d.ts and could not find any function that would ...
Jonathan Coletti's user avatar
0 votes
1 answer
119 views

Weaviate - top hits for with_near_vector() doesn't include the record whose vector perfectly matches query vector

I have a very large Weaviate vector storage class (700,000 records) in which I pass my own custom vectors. I’m trying to get distances against a vector I pass as below. The vector is actually a match ...
lrthistlethwaite's user avatar
0 votes
0 answers
47 views

JsonDecodeError from weaviate server in cloud

import weaviate weaviate.Client( url="https://myserver/weaviate", auth_client_secret=weaviate.AuthApiKey( api_key='myapikey' ), additional_headers={&...
Anoop Mundachal's user avatar
0 votes
0 answers
93 views

Weaviate plugin giving connection refused with docker

I am using the weaviate-php plugin in my Laravel project.if I try the authentication with the weaviate cloud console everything works perfectly fine I want to self-host using docker. here is my docker ...
Faizan's user avatar
  • 33
0 votes
1 answer
36 views

Weaviate cloud services add module

How would I add a modules to a cluster in weaviate cloud services. If I could not add it after creation of a cluster could I do it before? I know that I could do it with docker compose but there is no ...
Grandma Kisses's user avatar
0 votes
1 answer
49 views

nginx failing to route traffic to endpoints, but working if endpoint is removed

I have a docker compose file and an nginx.conf file. The nginx is able to route the request correctly in the below given case events {} http { upstream weaviate { server weaviate:5555; ...
Anoop Mundachal's user avatar
0 votes
0 answers
80 views

how to set up a docker compose file to manage weaviate using nginx

My docker compose and nginx config are given below: docker compose lml version: '3.7' services: nginx: build: context: ./nginx dockerfile: Dockerfile ports: - 80:80 ...
Anoop Mundachal's user avatar
0 votes
0 answers
73 views

For self-hosted weaviate instances, how many schemas and classes are allowed?

Looking to better understand how to monitor instance capacity as bootstrapped self-hoster, in other words, how much overhead should I allow? Specifically, What is the limit on: schemas, classes, ...
Vince Fulco's user avatar
1 vote
1 answer
80 views

Combine Weaviate databases with different schemas

I currently have a Weaviate database that contains 12 schemas and another which contains 10 schemas. Is it possible to just take the data for the 10 schemas and put them into the other database? If so,...
Keeper317's user avatar
1 vote
1 answer
47 views

In Weaviate, how to update invertedIndexConfig of an existing class?

From this Weaviate documentation - below endpoint: PUT v1/schema/{class_name} should allow me to alter an existing class in the schema. I wanted to set invertedIndexConfig > indexNullState to true ...
junbetterway's user avatar
0 votes
0 answers
41 views

In Weaviate, what is the recommended way to handle paginated results to avoid duplicates?

As per Weaviate documentation: The pagination setup is not stateful. If the database state has changed between retrieving two pages there is no guarantee that your pages cover all results. I am ...
junbetterway's user avatar
0 votes
1 answer
254 views

Weaviate combine with Azure Cognitive Search

This is my scenario: The client has an Azure SQL database with a profiles table with demographic information. We created an Azure Cognitive Search and indexed that database, we concatenated all ...
Luis Valencia's user avatar
2 votes
1 answer
395 views

WeaviateStartUpError: Weaviate did not start up in x seconds

So, I have this panel app on a .ypnb, that runs fine and comunicates to weaviate on port 8080 here's the working docker compose.yaml of the db: --- version: '3.4' services: weaviate: command: ...
Geraldo Francisco's user avatar
0 votes
1 answer
71 views

Can weaviate provide only the matching portion(s) of a relevant vector

Context I have a set of articles which have been vectorised and loaded into Weaviate using "vectorizer": "text2vec-openai" I then query as follows: Find articles which are close ...
David's user avatar
  • 7,672
1 vote
1 answer
98 views

In Weaviate hybrid search, is there a way to control the results based on score?

In Weaviate nearText search, one will be able to control results either using certainty or distance. For example, one can set certainty = 0.75 ensuring that not-so relevant results are not included. ...
junbetterway's user avatar
0 votes
1 answer
70 views

AttributeError: 'GetBuilder' object has no attribute 'with_additional'

In Weaviate vector db I get an AttributeError: 'GetBuilder' object has no attribute 'with_additional'. I want to get an id of an object I want to get an id of an object. For that I have used ...
Chethana Wickramaarachchi's user avatar
0 votes
0 answers
83 views

In Weaviate GraphQL, how to perform AGGREGATE with WHERE query to find duplicates?

We wanted something similar with PostgreSQL where one can combine group by with having clause. For example, I want to find players with duplicate player_code SELECT player_code FROM public.player ...
junbetterway's user avatar
0 votes
1 answer
518 views

langchain + Weaviate how to access multiple columns at once

I have created a schema with multiple properties in Weaviate. using the following approach: for row in tqdm(data, total=len(data)): client.data_object.create(data_object=row, class_name=...
Clem's user avatar
  • 51
0 votes
1 answer
145 views

Is there a delete by query in Weaviate?

I would like to delete records by query. The documentation does not mention this. I woudl like to do similar to: where_filter = { "path": ["hash"], "operator": &...
RKO's user avatar
  • 120
0 votes
0 answers
79 views

Error on batch add of cross references in Weaviate

Description: I am encountering an error while performing a batch add of cross references in Weaviate. Here is the code snippet I am using: client.batch .referencesBatcher() .withReference({ ...
CHIRAG JORASIA's user avatar
0 votes
0 answers
75 views

How to use GPT-4 in Q&A

Request to Weaviate Q&A service: $weaviate = new Weaviate('http://weaviate:8080/v1/', ''); $res = $weaviate->graphql()->get('{ Get { '.self::$weaviateClass.' ( ask: { ...
KoIIIeY's user avatar
  • 533
0 votes
1 answer
97 views

vectorWeights not filled for text2vec-transformers

Not sure if this is a bug or the intended behaviour but while using text2vec-transformers as a default vectorizer, graphQl nearText is working ok. So it retrieved nearby objects. However, the field ...
Junior Hechinger's user avatar
1 vote
0 answers
715 views

__init__() got an unexpected keyword argument 'pooling_mode_weightedmean_tokens'

I am attempting to index and vectorize a test document into Weaviate using Huggingface's instructor-xl, but I am getting this error. Does anyone know how to resolve? Code below. Schema creation script:...
Audrey's user avatar
  • 51
1 vote
0 answers
164 views

In Weaviate hybrid search, why does withOffset is not working as expected?

We have tried using Weaviate hybrid search for our search platform and it provides better results as it can now catch both keywords matching and vector search. However, unlike nearText search - it ...
junbetterway's user avatar
0 votes
0 answers
103 views

Troubleshooting: Unable to Attach EFS Volume with Weaviate Pod in Amazon EKS

pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: efs-pv spec: capacity: storage: 32Gi volumeMode: Filesystem accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: ...
Shivam Garg's user avatar
0 votes
0 answers
40 views

How does indexSearchable works in Weaviate?

I want to store an object and associate it with a vector embedding. So I am using the Bring Your Own Vectors approach. I want to use some properties of the object to filter and some I don't. So I ...
João Abrantes's user avatar
0 votes
1 answer
53 views

Weaviate sub-selection query using python client

how to query with subselection ? f.e. I have an attribute in my schema with: { "dataType": ["geoCoordinates"], "description": "The geocoordinate of the ...
Anon1284712's user avatar