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

Develop #20

Merged
merged 33 commits into from
Jul 19, 2023
Merged

Develop #20

merged 33 commits into from
Jul 19, 2023

Conversation

tazarov
Copy link
Contributor

@tazarov tazarov commented Jul 19, 2023

No description provided.

tazarov and others added 30 commits June 28, 2023 21:07
* 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.
Signed-off-by: Trayan Azarov <tazarov@users.noreply.github.com>
Added an abstraction for OpenAI functions OpenAIFunctionWrapper. It is still in early dev.
Signed-off-by: Trayan Azarov <tazarov@users.noreply.github.com>
…r identifying operations from user prompts - this is helpful for reducing LLM costs.
Added docs workflow for building the docs

Refs: #14
# Conflicts:
#	func_ai/function_indexer.py
#	poetry.lock
#	pyproject.toml
…y was not taken from env variable or constructor args.
# Conflicts:
#	poetry.lock
#	pyproject.toml
tazarov and others added 2 commits July 19, 2023 11:12
Signed-off-by: Trayan Azarov <tazarov@users.noreply.github.com>
- Added support for any chroma client (http, persistent etc)
- It is now possible to pass embedding function to use with the collection in chroma (Note: this may not be ideal if somehow different embeddings are used in different runs)
- Function Indexer now supports default LLM interface used for function wrappers
- All indexed functions are now loaded at Function Indexer instantiation
- Function searching now returns named tuple SearchResult (['name', 'wrapper', 'function', 'distance'])
- Improved the way a function is called from the wrapper to also accept *args in addition to **kwargs
- Each wrapped function now gets an identifier (e.g. `tests.test_findex.TestClass.test_class_method`) to be able to find reference to the function at Function Indexer startup. We also add a hash wich is the SHA-1 of the identifier
- Nested functions are not supported in the wrapper.
- It is not possible to rehydrate partial functions that have been indexed. Instead at app startup such function should be re-added to the index (not to worry the indexer will check the hashes and will not attempt to add an existing function)
- Updated docs for function indexing.

BREAKING-CHANGE: The `FunctionIndexer` init and other method signatures have changed and are not backward compatible.

Refs: #17
@tazarov tazarov added the enhancement New feature or request label Jul 19, 2023
@tazarov tazarov added this to the POC milestone Jul 19, 2023
@tazarov tazarov self-assigned this Jul 19, 2023
Signed-off-by: Trayan Azarov <tazarov@users.noreply.github.com>
@tazarov tazarov merged commit 59b2ed1 into main 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

Successfully merging this pull request may close these issues.

1 participant