You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
Need to do RAG with Hugging Face Models. All the Hugging Face models gives response in the below format and post_process_function does make it into JSON object. Like we have out of the box support for Cohere, Amazon and OpenAI. Need support for Hugging Face Models (LLM Models and not Embedding).
What solution would you like?
Like we have out of the box support for Cohere, Amazon and OpenAI. Need support for Hugging Face Models (LLM Models and not Embedding).
Should be able to perform post_process_function and pre_process_function
What alternatives have you considered?
Tried doing post_process_function but it never works
Do you have any additional context?
Tried below series of steps
ramda1234786
changed the title
[FEATURE]
Suppport for RAG with Hugging Face LLM Models using Connector. Post and Pre Process Function Support.
Jan 13, 2024
Is your feature request related to a problem?
Need to do RAG with Hugging Face Models. All the Hugging Face models gives response in the below format and
post_process_function
does make it into JSON object. Like we have out of the box support for Cohere, Amazon and OpenAI. Need support for Hugging Face Models (LLM Models and not Embedding).What solution would you like?
Like we have out of the box support for Cohere, Amazon and OpenAI. Need support for Hugging Face Models (LLM Models and not Embedding).
Should be able to perform
post_process_function
andpre_process_function
What alternatives have you considered?
Tried doing
post_process_function
but it never worksDo you have any additional context?
Tried below series of steps
"post_process_function": "\n def json = \"{\" +\n \"\\\"completion\\\":\\\"\" + params['response'][0].generated_text + \"\\\" \"}\";\n return json;\n "
Tried with painless script as well
POST /_scripts/painless/_execute
I got this
After Connector model, it did not worked i still get this error :
"reason": "Cannot invoke \"Object.getClass()\" because \"callArgs[0]\" is null"
Expected result is this
Much better if we can have a API to test, the
post_process_function
other than Painless script test/executionThe text was updated successfully, but these errors were encountered: