Find answers from the community

Updated 2 years ago

hey guys I m trying to generate a graph

At a glance
hey guys, I'm trying to generate a graph index following the chatbot example but I'm having a weird issue. In ComposableGraph from_indices, I'm getting the exception that the index variable does not contain an index_struct property, and it doesn't because it's just a string there, but I am passing in valid indexes as can be seen on the children_indices variable
Attachment
image.png
J
L
20 comments
also, the index_summaries count is completely off, for some reason it's splitting the actual individual index summary by characters
any pointers to what I can be doing wrong here please?
Do you have the code where you create the graph?
the loader is an UnstructuredReader if that makes any difference
(lines 47 and 48 were more out of frustration than anything else)
one issue I see is when constructing the graph, on line 65, you probably want to do list(index_set.values()) assuming that index_set is a dictionary (it looks like it is?)
oh that makes sense
that's probably why it's only getting the string
because that's the key
Let's see if that fixes the bug πŸ™
yeah that's probably it.. thanks. i'm fairly new to python, i'm a .net dev so i'm still getting used to stuff here
now one problem was def solved
but the other that i pointed is still happening, the index_summaries being the summaries split into individual characters
which blows up when the children_indices count doesn't match the index_summaries count
oh.. right yeah this is also a problem on my code, i'm just setting the list wrong
well. thanks a bunch πŸ˜„
haha happy to help! :dotsCATJAM:
Add a reply
Sign up and join the conversation on Discord