Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

change: no error on empty collection, so that the LLM session can 'recover' from the tool call #26

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

iwilltry42
Copy link
Collaborator

The error nResults must be > 0 often happens because we reduce the number of requested documents to be <= the number of available documents in a dataset. If the dataset is empty, this is not actually a hard error but something that we can let the LLM session (GPTScript) know without erroring out.

Copy link
Contributor

@StrongMonkey StrongMonkey left a comment

Choose a reason for hiding this comment

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

Nice!

@iwilltry42 iwilltry42 merged commit 7310de6 into main Jun 18, 2024
1 check passed
@iwilltry42 iwilltry42 deleted the change/empty-dataset-err branch June 18, 2024 17:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants