Skip to content

Commit ddb675c

Browse files
authored
Develop (#19)
* 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 <[email protected]>
1 parent 2b1015a commit ddb675c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

func_ai/function_indexer.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ def __init__(self, db_path: str, collection_name: str = "function_index", **kwar
2727
:param collection_name: The name of the collection
2828
:param kwargs: Additional arguments
2929
"""
30-
self._client = chromadb.Client(Settings(
30+
self._client = chromadb.PersistentClient(path=db_path, settings=Settings(
3131
anonymized_telemetry=False,
32-
chroma_db_impl="duckdb+parquet",
33-
persist_directory=db_path # Optional, defaults to .chromadb/ in the current directory
32+
allow_reset=True,
3433
))
3534
openai.api_key = kwargs.get("openai_api_key", os.getenv("OPENAI_API_KEY"))
3635
self.collection_name = collection_name

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "func-ai"
3-
version = "0.0.11"
3+
version = "0.0.12"
44
description = "AI Functional Catalog - OpenAI functions on steriods"
55
authors = ["Trayan Azarov <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)