-
Notifications
You must be signed in to change notification settings - Fork 108
LLM interface function calling and implementation for OpenAILLM #268
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
Conversation
255f481
to
0278184
Compare
1a9aa2d
to
bda358a
Compare
""" | ||
|
||
|
||
rag = GraphRAG(retriever=retriever, llm=llm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this example needs to be updated to remove the GraphRAG part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to show an example of how the tool can be used after being called. I was thinking to keep unless you prefer to have it removed to just show the tool call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit uncomfortable with it at the moment, but it's mainly because of our design: using the same llm
object which has the tool definition (in model_params
), we have to say in the prompt "do not use any tool", which I feel is the way it is intended to be used. We might have to reconsider this design before using this new feature in that way. WDYT?
1376ad7
to
4801ed0
Compare
Description
This PR enables function calling for the OpenAILLM. It updates the
OpenAILLM
class and alsoLLMInterface
type. An example script is also added.Type of Change
Complexity
Complexity: Low
How Has This Been Tested?
Checklist
The following requirements should have been met (depending on the changes in the branch):