Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Query Length? #13

Open
outbound opened this issue Oct 1, 2024 · 6 comments
Open

Query Length? #13

outbound opened this issue Oct 1, 2024 · 6 comments
Assignees

Comments

@outbound
Copy link

outbound commented Oct 1, 2024

Hi there,

Thanks for making this. It is simply awesome.

One question is on query length when using API.

With something like 1200 words (7900-ish characters, I get a "414 URI Too Long" error.
I tried Search request and Simple Search request.

When running the same request using OpenPerplex Playground, I don't run into this issue.

Are there any limits, or some additional restrictions in the API that are not allowing me to send this request?

@YassKhazzan
Copy link
Owner

Hello, thank you for the kind words! There is a limit on the API for words, but it’s not 1200—I'll check on that.

Also, no need to use the query as both a system and user prompt; just write your query as you would for the user prompt, as we handle the system prompt automatically.

In 2-3 days, I’ll be releasing a new version of the API that will allow you to customize both system and user prompts, similar to the Perplexity API.

@YassKhazzan
Copy link
Owner

please share with me your query and your search parameters, if you can't share it here, just send it over email : support@openperplex.com

@YassKhazzan YassKhazzan self-assigned this Oct 1, 2024
@outbound
Copy link
Author

outbound commented Oct 1, 2024

Absolutely - here you go
https://docs.google.com/document/d/1itafg-JoNg3OrZoT_JZRpkDSK17kh8Q1KUwy-doniRY/edit#heading=h.zfheo81ts5en

@YassKhazzan
Copy link
Owner

i see, this type of queries are not suitable for the search endpoint, please wait for the new endpoint im going to release soon to run this. i will ping you here

@outbound
Copy link
Author

outbound commented Oct 1, 2024 via email

@YassKhazzan
Copy link
Owner

Thank you so much for your support! Once I add testimonials to my website, I'll reach out to you for yours. In the meantime, feel free to follow me on X at https://x.com/KhazzanYassine, and if you'd like, you can share your testimonial there—I'll be sure to retweet it!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants