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

Number of requested results 5 is greater than number of elements in index 1, updating n_results = 1 #5

Open
kumardexati opened this issue Jan 22, 2024 · 1 comment

Comments

@kumardexati
Copy link

While searching a Folder with a single pdf, I keep getting error:
Number of requested results 5 is greater than number of elements in index 1, updating n_results = 1

Here is the code I am using:

from aifs import search
search("What is Popular Sovereignty?", path="/Users/km/work/test/Revolutions")
search("What triggered the American Revolution?") # Path defaults to CWD

Any suggestions?

@KillianLucas
Copy link
Collaborator

hey @kumardexati, thanks for reporting—is it erroring or just displaying that warning?

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

No branches or pull requests

2 participants