-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
HELP!!!!!!!!!! Can anyone help me in understanding how knowledge graph works internally in llama index? #11600
Comments
Hey there, @vishnu9000! Great to see you diving deep into LlamaIndex again. How have you been? Based on the context provided, it seems like you have a good understanding of how the knowledge graph works in LlamaIndex. Let's dive into your questions:
For more details, you can refer to the test cases in llama-index-core/tests/indices/knowledge_graph/test_retrievers.py. As for setting the prompt, it would depend on the specific use case and the nature of the data. Generally, the prompt should be designed to guide the model towards generating the desired output. However, without more specific information about your use case, it's difficult to provide a more detailed answer. Could you provide more details about the kind of prompts you're looking to set and the specific problems you're trying to solve? Sources
|
@dosubot Understood. So you are not storing the chunk where the triplet has been extracted. If that the case just relying on the triplets will it be complete answer? If the context from where this was retrieved is not included. Also let say if an entity in question has more than 100 relations, isn't it a leap of faith to put all its relation in context? What does graph_store_query_depth and similarity_top_k do? Also my second question is I saw a section in your document which shows how to manually add triplets in graph. Here you are also inserting the text chunk. Why is that? |
Based on the context provided, here are the answers to your questions:
For more details, you can refer to the test cases in llama-index-core/tests/indices/knowledge_graph/test_retrievers.py and the HTML node parser in llama-index-core/llama_index/core/node_parser/file/html.py. Sources
|
@vishnu9000
|
I really recommend just reading the source code for a deeper understanding here |
Question Validation
Question
I am having trouble understanding knowledge graph working in llama index. I understood few parts but I am not having clear understanding of other sections. Following are the things I understood:
What i don't understand:
The text was updated successfully, but these errors were encountered: