-
Notifications
You must be signed in to change notification settings - Fork 136
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
new: add info endpoint #678
Conversation
✅ Deploy Preview for poetic-froyo-8baba7 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Thank you @joein.
qdrant_client/http/models/models.py
Outdated
class RecommendStrategy(str, Enum): | ||
""" | ||
How to use positive and negative examples to find the results, default is `average_vector`: * `average_vector` - Average positive and negative vectors and create a single query with the formula `query = avg_pos + avg_pos - avg_neg`. Then performs normal search. * `best_score` - Uses custom search objective. Each candidate is compared against all examples, its score is then chosen from the `max(max_pos_score, max_neg_score)`. If the `max_neg_score` is chosen then it is squared and negated, otherwise it is just the `max_pos_score`. | ||
""" | ||
class RecommendStrategyOneOf(str, Enum): | ||
AVERAGE_VECTOR = "average_vector" | ||
|
||
def __str__(self) -> str: | ||
return str(self.value) | ||
|
||
AVERAGE_VECTOR = "average_vector" | ||
class RecommendStrategyOneOf1(str, Enum): | ||
BEST_SCORE = "best_score" |
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.
the reason: qdrant/qdrant#4560
enum was changed to oneof enums
* new: add info endpoint * fix: fix async generator * fix: remove crutch, update openapi * fix: regen async * fix: regen client with recommend strategy fix
This PR exposes method
info
to get qdrant server info like version, title and current commitIt also fixes http method for retrieval, which could not create a correct
InlineResponse
model