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

As a result, max_token is limited, resulting in no output all #956

Open
1057504487 opened this issue Mar 19, 2025 · 1 comment
Open

As a result, max_token is limited, resulting in no output all #956

1057504487 opened this issue Mar 19, 2025 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@1057504487
Copy link

If max_token is set to 8192, about 5 pieces of data will be output.

The max_token has a maximum size of 16384, and it cannot obtain all data.

How do we deal with this?

Copy link

dosubot bot commented Mar 19, 2025

Hey @1057504487, I'm here to help with any bugs, questions, or contributions you have. Let's tackle this together!

To address the issue of the max_token limit affecting data output in Scrapegraph-ai, you can try the following approaches:

  1. Adjust the max_token Parameter: If the maximum size is 16384 and you're currently using 8192, consider increasing it closer to the maximum if your use case allows. This might help in retrieving more data.

  2. Optimize Data Requests: Break down your data requests into smaller chunks that fit within the max_token limit. This can be done by segmenting the data or making multiple requests.

  3. Refine the Output Schema: Use a more concise output schema to reduce the token usage. This can help in fitting more data within the token limit.

  4. Use Efficient Models: Choose a model that is optimized for your specific task, as some models might handle token limits more efficiently.

  5. Configure Other Parameters: Adjust other parameters like TEMPERATURE and MAX_SEARCH_RESULTS to optimize the data retrieval process [1][2][3][4][5].

These strategies can help you manage the max_token limit and improve data output.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added bug Something isn't working question Further information is requested labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant