Skip to content
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

Rel v2 #190

Merged
merged 76 commits into from
Dec 22, 2023
Merged

Rel v2 #190

merged 76 commits into from
Dec 22, 2023

Conversation

ngupta10
Copy link
Contributor

@ngupta10 ngupta10 commented Dec 13, 2023

Relationship Extraction 1st iteration implementation.

  1. The rel extraction engine currently takes 2 entities and the context between them to output a semantic triple (Entity1, Predicate, Entity2), along with {Predicate_type}.
  2. Using LLAMA based open source LLMs to extract predicate and predicate_type
  3. Using Grammar based approach for ensuring consistent schema of llm output
  4. Implemented Branch and Solve Algorithm (currently not using the full implementation i.e. with different llms) - This can be later turned on to extract predicate from different LLMS at same time and validate the llm output.
  5. Implement RAG based appraoch for context filtering before feeding it to llm to derive the predicate and predicate_type (turned off for now). Will need to experiment more to determine what are the parameters that we can hypertune to make this more effective.

To-Do:

  1. Implement a separate signal for context embeddings - https://github.com/Querent-ai/querent/issues/194
  2. bug fixing in entity filtering mechanism of bert llm - https://github.com/Querent-ai/querent/issues/193
  3. Establish Fixed & Sample entities and relationships - https://github.com/Querent-ai/querent/issues/195

@ngupta10
Copy link
Contributor Author

OK sir

Copy link
Contributor

@saraswatpuneet saraswatpuneet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still needs some love, let's walk through together

@ngupta10 ngupta10 merged commit 0a4e29a into main Dec 22, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants