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 k to all asks #298

Merged
merged 10 commits into from
Aug 22, 2023
Merged

Conversation

asmorris
Copy link
Contributor

Context

This PR is the logical extension of #297 - we were running into limits with the ask method where our context was larger than the 4096 token window available for our OpenAI model, and so we needed to slim it down by reducing the amount of results we received. However there was no k available on the method, so this gives all those methods that functionality.

@andreibondarev andreibondarev merged commit 3076537 into patterns-ai-core:main Aug 22, 2023
5 checks passed
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

2 participants