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.

Homepage: weaviate.io

116 questions
0
votes
1 answer

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 matches to a question…
David
  • 7,652
  • 21
  • 60
  • 98
0
votes
1 answer

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 with_additional, with a filter.
0
votes
0 answers

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 GROUP BY player_code HAVING COUNT(player_code) >…
junbetterway
  • 236
  • 3
  • 13
0
votes
1 answer

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=INDEX_NAME) here is a sample of the data (1…
Clem
  • 51
  • 7
0
votes
1 answer

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": "Equal", "valueText": hash, } return ( client.query …
RKO
  • 120
  • 9
0
votes
0 answers

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({ from:…
0
votes
0 answers

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: { question: "'.$request->q.'", properties: ["content"] }, …
KoIIIeY
  • 533
  • 1
  • 7
  • 26
0
votes
1 answer

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 vectorWeights of object are empty. Is that expected…
0
votes
0 answers

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: Retain storageClassName: efs-sc csi: …
0
votes
0 answers

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 guess, I have to name these properties in the schema…
João Abrantes
  • 4,772
  • 4
  • 35
  • 71
0
votes
1 answer

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 company", "name": "coordinates" } Now geoCoordinates have latitude and…
0
votes
0 answers

Weaviate GraphQL - How to Group by Multiple Properties

I have an object News in Weaviate with a year, a month, a day and some other data columns. I want to count the rows per year and month. In SQL this would look like this: SELECT year, month, count(*) FROM news group by year, month; In Weaviate…
S. Dunc
  • 1
  • 1
0
votes
1 answer

How to include cross-reference property in weaviate query?

The problem is that I don't know how to include cross-reference property wrotePublications in query result I have 2 collections in weaviate database -- Researcher and Publication. Schemas: publication_class_schema = { "class":…
jedrix
  • 63
  • 5
0
votes
1 answer

Weaviate - How to create a vector using "text2vec-transformers" module?

How to create a vector using "text2vec-transformers" module? I want to use "nearVector" method but there is no way to create vector using "text2vec-transformers" module. I am using this module as my default vectorizer. I have searched whole…
0
votes
1 answer

Nonsensical Distance queries from weaviate

I am using weaviate with the vectorizer semitechnologies/transformers-inference:sentence-transformers-paraphrase-multilingual-mpnet-base-v2, which is supposedly the best multi language vectorizer available. I am using it sort through German…
user2741831
  • 2,120
  • 2
  • 22
  • 43