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

Data too large for "export-doc-qa-feedback" #249

Closed
laifuchicago opened this issue Jul 20, 2020 · 3 comments
Closed

Data too large for "export-doc-qa-feedback" #249

laifuchicago opened this issue Jul 20, 2020 · 3 comments
Assignees
Labels
type:bug Something isn't working

Comments

@laifuchicago
Copy link

To Author:
I tried to edit the finetune "feedback" data. However, I got the following error. I have tried to release the cache but still can not work. Do you have any idea? Thank you!
6
Jonathan Sung

@laifuchicago laifuchicago added the type:bug Something isn't working label Jul 20, 2020
@tanaysoni
Copy link
Contributor

Hi @laifuchicago, can you provide more details as to when you get this error? Do you get this when exporting the "feedback"?

It seems like a query is returning huge amount of data, causing the request to break.

@laifuchicago
Copy link
Author

laifuchicago commented Jul 23, 2020

To author:
I got this error when exporting the feedback. Is there a way to delete that one?
Jonathan Sung

@tanaysoni
Copy link
Contributor

Hi @laifuchicago, yes you can delete the current feedback index in Elasticsearch. Here's a code snippet you could use:

from elasticsearch import Elasticsearch
client = Elasticsearch(hosts=[{"host": HOST, "port": PORT}], http_auth=(USERNAME, PASSWORD))
client.indices.delete(index="feedback", ignore=[404])

In the current feedback export, the entire document(corresponding to a "feedback") gets exported as "context", thus bloating up the response size. To make it scalable, we plan to make the size of the "context" configurable in the API. I'll update here when we have an implementation for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants