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

How to handle queries containing large vector embed. #9

Open
tewatiarahul opened this issue Nov 3, 2020 · 1 comment
Open

How to handle queries containing large vector embed. #9

tewatiarahul opened this issue Nov 3, 2020 · 1 comment

Comments

@tewatiarahul
Copy link

Hi,

In the given example you took embedding of size 5.. in case of solr 8.5, vector embed of length 512 or greater when we send request for querying. it gives error 414.. url too large... how this issue can be resolved any idea about it?
error

Thanks

@satishsilveri
Copy link

satishsilveri commented Nov 4, 2020

Syntax in CURL:

CURL http://localhost:8983/solr/{your colletction}/query?fl=name,score -d 'q={!vp f=vector vector="comma_separated_string_of_embedding_of_any_length"}'

CURL equivalent code in python:

url="http://localhost:8983/solr/{your_collection}/query?fl=name,score"

data={"query":"q={!vp f=vector vector=\"comma_separated_string_of_embedding_of_any_length\"}"}

response = requests.post(url=url,data=json.dumps(data),headers={'Content-Type': 'application/json'})

print(response.text)

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