This message was deleted.
# community-help
s
This message was deleted.
j
Could you share your schema?
m
Copy code
threadsCol := `{"name": "threads", "fields": [
	{"name": ".*", "type": "auto"},
	{"name": "embedding",
	 "type": "float[]",
	 "num_dim": 384
	}
	]}`
j
Since the field is called
embedding
, you want to use that name instead of
vec
in your vector query
m
And when giving this embedding, do I also need to specify
k:100
, if I want hybrid search?
"embedding:([%s], k:100)"
j
Yeah
m
If both
q
and
vector_query
are present, would it automatically do a hybrid search?
j
That's right
Could you upgrade to
0.25.1.rc5
though - fixed some issues related to this in recent builds
👍🏽 1
m
Copy code
query["query_by"] = "subject,summary,chats,embedding"
So, this order is roughly correct? The "subject, summary, and chats" fields would constitute 70% towards the rank, and embedding would constitute 30%?
j
The 70 / 30 split in weightage is fixed at the moment, regardless of the position of the embedding field in query_by
m
ok. works for me
j
So 70% weightage on keyword search and 30% weightage on semantic search
👍🏽 1
m
btw, what level of precision in floats, does TS need? How many decimal points?
j
Typesense doesn't enforce any minimum precisions - that's completely dependent on the model