Skip to content
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

Merged
merged 5 commits into from
Aug 8, 2024
Merged

new: add info endpoint #678

merged 5 commits into from
Aug 8, 2024

Conversation

joein
Copy link
Member

@joein joein commented Jul 5, 2024

This PR exposes method info to get qdrant server info like version, title and current commit
It also fixes http method for retrieval, which could not create a correct InlineResponse model

Copy link

netlify bot commented Jul 5, 2024

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit 15f91d7
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/668e8426d6d8da000890f546
😎 Deploy Preview https://deploy-preview-678--poetic-froyo-8baba7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@joein joein requested review from generall and Anush008 July 5, 2024 16:48
Copy link
Member

@Anush008 Anush008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @joein.

@joein joein marked this pull request as draft July 8, 2024 09:40
Comment on lines 1624 to 1656
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"
Copy link
Member Author

@joein joein Jul 9, 2024

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

@joein joein marked this pull request as ready for review August 8, 2024 14:55
@joein joein merged commit 59a1569 into dev Aug 8, 2024
14 checks passed
joein added a commit that referenced this pull request Aug 12, 2024
* new: add info endpoint

* fix: fix async generator

* fix: remove crutch, update openapi

* fix: regen async

* fix: regen client with recommend strategy fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants