Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
llama_index/llama-index-core/llama_index...
llama_index/llama-index-core/llama_index...
Inactive
0
Follow
n
nspielbe
6 months ago
Β·
Hi there, I have an issue with the textNode I am using getting truncated with a "..." because of
https://github.com/run-llama/llama_index/blob/main/llama-index-core/llama_index/core/schema.py#L329-L336
Where my Text node is being truncated so my response synthesis cannot use the full text response because of the truncation. Has anyone hit this issue or am I doing something wrong? Thanks!
L
n
13 comments
Share
Open in Discord
L
Logan M
6 months ago
What code are you running?
All the internal code should be using node.text or node.get_content()
n
nspielbe
6 months ago
sql_retriever = SQLRetriever(sql_database)
The output of this is calling
str method of the text node which incorrectly is passing into the context when I was debugging
n
nspielbe
6 months ago
in query.py validate and convert stringable:
https://github.com/run-llama/llama_index/blob/main/llama-index-core/llama_index/core/base/query_pipeline/query.py#L61-L62
bc node with score is a stringable input-- I see this getting called
L
Logan M
6 months ago
Interesting, seems like a bug
L
Logan M
6 months ago
Workaround would be a custom component that returns strings instead of nodes
n
nspielbe
6 months ago
yeah- tried this and it works (overwrote locally as well also works)
n
nspielbe
6 months ago
@Logan M should I report an issue or?
L
Logan M
6 months ago
yea probably worth it. Although if you can think of a fix, a PR would be even better β€οΈ
n
nspielbe
6 months ago
Thx-- submitted an issue here:
https://github.com/run-llama/llama_index/issues/14240
n
nspielbe
6 months ago
@Logan M
https://github.com/run-llama/llama_index/pull/14242
L
Logan M
6 months ago
π Will review soon!
n
nspielbe
6 months ago
Any comments? Should be a super quick fix
L
Logan M
6 months ago
bit of a one-man show in the reviews -- will get to it at some point today π
Add a reply
Sign up and join the conversation on Discord
Join on Discord