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

Chroma utils #92

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

Bakobiibizo
Copy link

Fell down a rabbit hole and retyped ChromaUtils. I broke the embedding function off into its own base class and added a dictionary of embedding functions to pass the embed name value through to get the correct embedding function with out chained ifel statements which should improve speed and readability.
Corrected a number of type checking issues from variables being declared None and never being assigned a value due to the resolution of different branches of the logic trees.
Reduced the spacing in the cli tool so that the scrolling print out would land within the cli when not at max size.
My formatter changed a bunch of spacing and single quotation marks to double quotation marks in a number of places within the repo, should not affect functionality or readability.

I hope I didnt overstep, feel free to deny the pull request if I did. I try and fix one type issue I notice and it leads me all way down to a base class, then next thing you know ive typed an entire section of the repo. it should be easier to read and have stronger type safety now though.

DataBassGit and others added 4 commits January 7, 2024 01:48
F
f
…api error over api exception in anthropic.py, reworked the embedding function in chroma utils to be more decoupled and have stronger typing, adjust the spacing on the cli tool in guy.py. everything else was my formatter changing strings or spacing.
…api error over api exception in anthropic.py, reworked the embedding function in chroma utils to be more decoupled and have stronger typing, adjust the spacing on the cli tool in guy.py. everything else was my formatter changing strings or spacing.
@Bakobiibizo
Copy link
Author

ok i think its ok now? lol sorry!

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.

None yet

3 participants