Skip to content
Snippets Groups Projects
Commit fecc930b authored by Sangamithra Panneer Selvam's avatar Sangamithra Panneer Selvam
Browse files

Update Readme.md

parent 6495d631
No related branches found
No related tags found
No related merge requests found
# Grounding LLMs with Knowledge Graph # Grounding LLMs with Knowledge Graph
This project supports the grounding of LLMs with KG usecase. The aim of this use case is to visualize the future goal in Graphene such as : 'We provide Grounding capabilities in Graphene'. The users with their LLM or LLM of their choice from langchain component modules can ground the LLM capabilities with the Knowledge graph generated. PLease refer to the issue for more details on the usecase: https://gitlab.eclipse.org/eclipse/graphene/tutorials/-/issues/25 This project supports the grounding of LLMs with KG usecase. The aim of this use case is to visualize the future goal in Graphene such as : 'We provide Grounding capabilities in Graphene'. The users with their LLM or LLM of their choice from langchain component modules can ground the LLM capabilities with the Knowledge graph generated. PLease refer to the issue for more details on the usecase: https://gitlab.eclipse.org/eclipse/graphene/tutorials/-/issues/25
# WorkFlow
# Docker Containers # Docker Containers
Here we have 3 docker containers: Here we have 3 docker containers:
...@@ -9,8 +13,11 @@ Here we have 3 docker containers: ...@@ -9,8 +13,11 @@ Here we have 3 docker containers:
2. Parser Model 2. Parser Model
The parser model is an OpenAI's LLM model that converts the unstructured usecase specific data into structured data ( i.e. in terms of triples - entities and relations ) for constructing Knowledge Graph. The structured data is then sent into the final docker container - GroundingLLM The parser model is an OpenAI's LLM model that converts the unstructured usecase specific data into structured data ( i.e. in terms of triples - entities and relations ) for constructing Knowledge Graph. The structured data is then sent into the final docker container - GroundingLLM
3. GroundingLLM 3. GroundingLLM
The GroundingLLM container contains neo4j as the base image, a Langchain component and an OpenAI's LLM model. The structured data is used to construct KG in Neo4j database and the Langchain component access this to etxract relevant information from the Graph. The GroundingLLM container contains neo4j as the base image, a Langchain component and an OpenAI's LLM model. The structured data is used to construct KG in Neo4j database and the Langchain component access this to etxract relevant information from the Graph.Finally the relevant information from the graph and user's query is sent into the OpenAI LLM model to generate response that is expected to be accurate, relevant and high in quality. Metrics such as faithfulness and answer relevancy is automatically calculated to evaluate LLM's response. User feedbacks are also obtained through star ratings and feedback text box.
4. User-Diagostics
The node is responsible to calculate overall efficiency of the pipeline i.e. overall star ratings, feedback score, faithfulness score and answer relevancy score.
Finally the relevant information from the graph and user's query is sent into the OpenAI LLM model to generate response that is expected to be accurate, relevant and high in quality.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment