-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add auto-embedding fields #56
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Coverage report for commit: 379e705
Summary - Lines: 84.58% 🔼 | Methods: 77.71% 🔽
🤖 comment via lucassabreu/comment-coverage-clover |
fa99c3e
to
e995b45
Compare
e995b45
to
379e705
Compare
|
||
Unless you want to store embeddings in your database, you can specify `mapped: false` in the configuration, the embeddings will only live in typesense. | ||
|
||
In this case, we recommend to exclude the fields from being retrieved when doing a query as. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"In this case, we recommend excluding these fields from being retrieved in the query."
* 'embed'?:null|FieldMappingEmbedArray, | ||
* 'mapped'?:bool | ||
* } | ||
* @phpstan-type FieldMappingEmbedArray array{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am hesitating to create an object for this type instead of using an array.
@@ -197,7 +197,8 @@ public function toArray(): array | |||
'synonym_prefix' => $this->synonymPrefix, | |||
'text_match_type' => $this->textMatchType, | |||
'typo_tokens_threshold' => $this->typoTokensThreshold, | |||
'vector_query' => $this->vectorQuery?->toArray(), | |||
// @phpstan-ignore-next-line (->toArray is part of vectorInterface) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't ignore anything, nothing has been ignored so far
Allows to configure auto embedding fields