Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiaprodhan authored Apr 19, 2024
1 parent 8884ead commit 1a4f33a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Knowledge Graph Construction and Question Answering from Biology Textbook
Our project is centered on developing a domain-specific knowledge graph (KG) from a biology textbook. We employ entity and relation extraction models, using tools such as spaCy to extract logical and semantic information from the text. By integrating this KG with the large language model GPT-4 for question-answering, our goal is to deliver responses that are contextually appropriate to the asked questions.
The textbook is already provided in the repository in pdf format.
## Instructions
### Knowledge Graph Construction
To execute our knowledge graph construction code, simply run the command
```
python kg.py
or
python3 kg.py
```
This will also show the visual representation of the knowledge graph.

### Question and Answering
The question and answering code is in llm_integration.ipynb which is done in google colab.
We used GPT-4 an LLM for generating cypher to query Neo4j Database.
An openAI API key is required and could be generarted here after opening an account- https://platform.openai.com/playground
You have to uncomment the code and put your api key value in the openai_api_key variable
and run the code.

0 comments on commit 1a4f33a

Please sign in to comment.