Skip to content

feat( deep seek generator)#138

Open
ba-talibe wants to merge 7 commits intowikit-ai:mainfrom
ba-talibe:feat/add_DeepSeek_Generator
Open

feat( deep seek generator)#138
ba-talibe wants to merge 7 commits intowikit-ai:mainfrom
ba-talibe:feat/add_DeepSeek_Generator

Conversation

@ba-talibe
Copy link
Copy Markdown
Collaborator

Added DeepSeek ( a powerfull and cheaper LLM ) generator to OLAF and all necessaries tests.

@ba-talibe ba-talibe requested a review from schmarion May 19, 2025 08:12
@ba-talibe ba-talibe self-assigned this May 19, 2025
Copy link
Copy Markdown
Collaborator

@schmarion schmarion left a comment

Choose a reason for hiding this comment

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

Hi Oumar,
Great to see a review from you ! Nice job ;)

Comment thread olaf/commons/prompts.py Outdated
Text: {context}"""
return prompt_template

def deepseek_prompt_concept_term_extraction(context: str) -> str:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I feel like this function is the same as openai_prompt_concept_term_extraction, so maybe you should delete the redundant prompts

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Hi Marion,
delighted to contribute to project.

So shall we keep only openai prompt function with the same name , or rename openai prompt fonction to a new and more generic name ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A new and more generic name sounds good!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ok I choosed to llm_prompt_concept_term_extraction.
the prompt schemas you used is enough abstract and compatible to most of modern LLM.

Comment thread olaf/data_container/relation_schema.py Outdated
def __repr__(self) -> str:
return f"({self.source_concept.label}, {self.label}, {self.destination_concept.label})"
if self.source_concept is None or self.destination_concept is None:
return f"(None, {self.label}, None)"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Missing is the case where only the source or the destination is None

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