Error in parameters.max_new_tokens
: ensure this value is less than or equal to 250' in rag_pipeline.run(..)
#6686
Unanswered
Sandeep-madhyastha
asked this question in
Questions
Replies: 2 comments 1 reply
-
Hello! Please provide a reproducible example of the code that raised that error. |
Beta Was this translation helpful? Give feedback.
1 reply
-
The problem seems that in this example we are hardcoding the haystack/haystack/pipeline_utils/rag.py Line 201 in 552f0e3 and TGI complains. But in this example, there is no way to change this value. We should improve the example. For the proper way to build pipelines that are model-agnostic, I suggest reading these: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Wish: Can rag_pipeline.run(..) have another input parameter "max_new_tokens" where in caller can restrict the number of tokens returned.
Scenario : Currently when called with some TGI from hugging face following error is occurred()
![2024-01-04_17-39-12](https://private-user-images.githubusercontent.com/80199157/294315826-586cd1f3-ed10-472c-a276-e466c7fd3efe.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MzA0NTYsIm5iZiI6MTczOTUzMDE1NiwicGF0aCI6Ii84MDE5OTE1Ny8yOTQzMTU4MjYtNTg2Y2QxZjMtZWQxMC00NzJjLWEyNzYtZTQ2NmM3ZmQzZWZlLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDEwNDkxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkYTY3ZDgwYTRkZTQ4YmE2MjNiOTg5MGQ3NTE1MDkwZDI1NmM4YWJiOGI4YzdlYjczNzJkMTk0YTBiODc0YmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1WZb-G9kqX-tRerbxovBP_pXAfkFJz_LjOHRHJutCCk)
Great work :-)Thanks
Beta Was this translation helpful? Give feedback.
All reactions