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

Add generative openai support #236

Merged
merged 2 commits into from Feb 24, 2023
Merged

Add generative openai support #236

merged 2 commits into from Feb 24, 2023

Conversation

dirkkul
Copy link
Collaborator

@dirkkul dirkkul commented Feb 24, 2023

Adds support for generative search via openai

usage:

    result = (
        client.query.get(*Class* [*Props*])
        .with_generate(
            single_prompt="Some prompt",
            grouped_task="Some task",
        )
        .do()
    )

At least one of the two parameters has be given

Copy link
Member

@byronvoorbach byronvoorbach left a comment

Choose a reason for hiding this comment

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

LGTM!

@dirkkul dirkkul marked this pull request as ready for review February 24, 2023 13:30
@dirkkul dirkkul requested a review from a team as a code owner February 24, 2023 13:30
weaviate/gql/get.py Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Base: 96.35% // Head: 96.07% // Decreases project coverage by -0.29% ⚠️

Coverage data is based on head (7dfefe8) compared to base (3d66fb7).
Patch coverage: 80.95% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
- Coverage   96.35%   96.07%   -0.29%     
==========================================
  Files          60       60              
  Lines        7081     7185     +104     
==========================================
+ Hits         6823     6903      +80     
- Misses        258      282      +24     
Flag Coverage Δ
unittests 96.07% <80.95%> (-0.29%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
test/connection/test_connection.py 91.89% <ø> (ø)
weaviate/client.py 98.30% <ø> (ø)
weaviate/wcs/crud_wcs.py 98.50% <ø> (ø)
integration/test_graphql.py 87.50% <42.85%> (-12.50%) ⬇️
integration/test_authentication.py 89.09% <57.89%> (-6.52%) ⬇️
weaviate/util.py 95.85% <63.63%> (-2.25%) ⬇️
weaviate/connect/connection.py 90.05% <68.00%> (-3.66%) ⬇️
test/gql/test_get.py 100.00% <100.00%> (ø)
test/test_client.py 100.00% <100.00%> (ø)
test/test_version.py 100.00% <100.00%> (ø)
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

None yet

4 participants