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

Improve python functions by adding the return type/description if any exist #11

Closed
tazarov opened this issue Jul 7, 2023 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tazarov
Copy link
Contributor

tazarov commented Jul 7, 2023

About

Since the return type of a function is generally not something that OpenAI function calling expects as part of the json we want to have the opportunity to include any return related info in the description which will help the LLM better determine what to expect from the function.

@tazarov tazarov added the enhancement New feature or request label Jul 7, 2023
@tazarov tazarov added this to the POC milestone Jul 7, 2023
@tazarov tazarov self-assigned this Jul 7, 2023
tazarov added a commit that referenced this issue Jul 18, 2023
* chore: Added project urls and fixed python vulnerability scan paths

* chore: Added some fixes and documentation to py_function_parser.  (#2)

* chore: Added some fixes and documentation to py_function_parser. Added py parser tests.

* fix: Fixing vuln scan action

* feat: Added LLM tools, Added class inheritance for classes that need LLM handling.

* feat: Added support for enums.

Updated tests.
Added links to inspiration projects

* feat: First 'naive' iteration of openai function calling with openAPI specs

* chore: version bump

* feat: OpenAPI Parsing and calling is now implemented and working.

* feat: Jinja2 template rendering with prompt and OpenAI Functions

* feat: Added custom filter support.

* feat: Refactored OpenAPI calling.

Added an abstraction for OpenAI functions OpenAIFunctionWrapper. It is still in early dev.

* feat: Added json serialization of wrappers.

* feat: Fixing python vulnerability scan workflow.

* chore: Version bump for json serialization feature of OpenAPI wrapper

* feat: OpenAPI spec chatbot (#8)

Refs: #7

* feat: Added OpenAPI QA bot support and example gradio chatbot

Refs: #7

* feat: Added locally run (facebook/bart-large-mnli) text classifier for identifying operations from user prompts - this is helpful for reducing LLM costs.

* feat: Added return description to OpenAI function object's description.

Refs: #11

* feat: Added threshold to the FunctionIndexer find_functions with a default 1.0 (match everything)

Refs: #13

* feat: Documentation

Added docs workflow for building the docs

Refs: #14

* chore: Enable Material theme for docs

Refs: #14

* chore: Added an article on Python function calling

Refs: #14

* fix: Fixed wrong indentation in python-function-calling.md article.

Refs: #14

* fix: Gotta learn material for mkdocs :D

Refs: #14

* feat: Added function wrapper documentation and example jupyter notebook.

Refs: #14

* fix: Added small improvement of information returned about failures to call LLM from response.

* chore: Version bump

* fix: Remove telemetry in ChromaDB and fixed an issue where OpenaAI key was not taken from env variable or constructor args.

---------

Signed-off-by: Trayan Azarov <tazarov@users.noreply.github.com>
tazarov added a commit that referenced this issue Jul 19, 2023
* chore: Added project urls and fixed python vulnerability scan paths

* chore: Added some fixes and documentation to py_function_parser.  (#2)

* chore: Added some fixes and documentation to py_function_parser. Added py parser tests.

* fix: Fixing vuln scan action

* feat: Added LLM tools, Added class inheritance for classes that need LLM handling.

* feat: Added support for enums.

Updated tests.
Added links to inspiration projects

* feat: First 'naive' iteration of openai function calling with openAPI specs

* chore: version bump

* feat: OpenAPI Parsing and calling is now implemented and working.

* feat: Jinja2 template rendering with prompt and OpenAI Functions

* feat: Added custom filter support.

* feat: Refactored OpenAPI calling.

Added an abstraction for OpenAI functions OpenAIFunctionWrapper. It is still in early dev.

* feat: Added json serialization of wrappers.

* feat: Fixing python vulnerability scan workflow.

* chore: Version bump for json serialization feature of OpenAPI wrapper

* feat: OpenAPI spec chatbot (#8)

Refs: #7

* feat: Added OpenAPI QA bot support and example gradio chatbot

Refs: #7

* feat: Added locally run (facebook/bart-large-mnli) text classifier for identifying operations from user prompts - this is helpful for reducing LLM costs.

* feat: Added return description to OpenAI function object's description.

Refs: #11

* feat: Added threshold to the FunctionIndexer find_functions with a default 1.0 (match everything)

Refs: #13

* feat: Documentation

Added docs workflow for building the docs

Refs: #14

* chore: Enable Material theme for docs

Refs: #14

* chore: Added an article on Python function calling

Refs: #14

* fix: Fixed wrong indentation in python-function-calling.md article.

Refs: #14

* fix: Gotta learn material for mkdocs :D

Refs: #14

* feat: Added function wrapper documentation and example jupyter notebook.

Refs: #14

* fix: Added small improvement of information returned about failures to call LLM from response.

* chore: Version bump

* fix: Remove telemetry in ChromaDB and fixed an issue where OpenaAI key was not taken from env variable or constructor args.

* fix: Bumping chromadb version to 0.4.2

* chore: Version bump to resolve dependency issues

---------

Signed-off-by: Trayan Azarov <tazarov@users.noreply.github.com>
tazarov added a commit that referenced this issue Jul 19, 2023
* chore: Added project urls and fixed python vulnerability scan paths

* chore: Added some fixes and documentation to py_function_parser.  (#2)

* chore: Added some fixes and documentation to py_function_parser. Added py parser tests.

* fix: Fixing vuln scan action

* feat: Added LLM tools, Added class inheritance for classes that need LLM handling.

* feat: Added support for enums.

Updated tests.
Added links to inspiration projects

* feat: First 'naive' iteration of openai function calling with openAPI specs

* chore: version bump

* feat: OpenAPI Parsing and calling is now implemented and working.

* feat: Jinja2 template rendering with prompt and OpenAI Functions

* feat: Added custom filter support.

* feat: Refactored OpenAPI calling.

Added an abstraction for OpenAI functions OpenAIFunctionWrapper. It is still in early dev.

* feat: Added json serialization of wrappers.

* feat: Fixing python vulnerability scan workflow.

* chore: Version bump for json serialization feature of OpenAPI wrapper

* feat: OpenAPI spec chatbot (#8)

Refs: #7

* feat: Added OpenAPI QA bot support and example gradio chatbot

Refs: #7

* feat: Added locally run (facebook/bart-large-mnli) text classifier for identifying operations from user prompts - this is helpful for reducing LLM costs.

* feat: Added return description to OpenAI function object's description.

Refs: #11

* feat: Added threshold to the FunctionIndexer find_functions with a default 1.0 (match everything)

Refs: #13

* feat: Documentation

Added docs workflow for building the docs

Refs: #14

* chore: Enable Material theme for docs

Refs: #14

* chore: Added an article on Python function calling

Refs: #14

* fix: Fixed wrong indentation in python-function-calling.md article.

Refs: #14

* fix: Gotta learn material for mkdocs :D

Refs: #14

* feat: Added function wrapper documentation and example jupyter notebook.

Refs: #14

* fix: Added small improvement of information returned about failures to call LLM from response.

* chore: Version bump

* fix: Remove telemetry in ChromaDB and fixed an issue where OpenaAI key was not taken from env variable or constructor args.

* fix: Bumping chromadb version to 0.4.2

* chore: Version bump to resolve dependency issues

* fix: Fixed a migration problem to new chromadb

---------

Signed-off-by: Trayan Azarov <tazarov@users.noreply.github.com>
@tazarov tazarov closed this as completed Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant