Running into token limits when embedding in create_final_entities
#595
Unanswered
Deleted user (ghost)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm running into token limits when creating embeddings running the create_final_entities step and I can't figure out what it's trying to create embeddings of.
My embedding (and chat) LLM has pretty strict token limits of about 2048. However, graphrag is passing it inputs slightly larger than that. How do I prevent this? The logs are at the bottom.
I've set
max_tokensunderllmto 1500 to ensure that instruction LLMs aren't generating large outputs.max_lengthforcommunity_reportsandsummarize_descriptionsis already set to below 2048. I've played withembeddings:tokens_per_batchtoo. None of this seems to be related. Poking around the actual queries appears to match text generated by entity queries but not exactly. And I'm a bit lost when reading thecreate_final_entitiescode in the repo.All reactions