Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3605

Changing keyword weight of only one out of 30 properties

$
0
0

Description

Hey! I have a collection with around 30+ properties available, and I want the user, at query time, to choose relevant properties that´s important for their search.

The problem is that right now, from my understanding, to do that in the query_properties field, as exemplified below, requires me to write all other properties that still had the value of 1 for me to consider them:

jeopardy = client.collections.get("JeopardyQuestion")
response = jeopardy.query.bm25(
    query="food",
    query_properties=["question^2", "answer"],
    limit=3
)

The collection’s properties are dynamic and it´s common for new ones to appear, and it´s not feasible for the client to create the list and send to the server.

Ideally, I wanted an option where the code above would work the same, with or without the “answer” property in the list.

Did anyone face this challenge yet? And if so, how do you guys were able to work around this?

Thanks in advance! Appreciate it!

By the way, I wanted to avoid adding a step that get´s all properties of a collections before running the query, simply to avoid any overhead


Viewing all articles
Browse latest Browse all 3605

Trending Articles