AgentForge icon indicating copy to clipboard operation
AgentForge copied to clipboard

Chroma utils

Open Bakobiibizo opened this issue 2 years ago • 1 comments

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.

Bakobiibizo avatar Jan 08 '24 02:01 Bakobiibizo

ok i think its ok now? lol sorry!

Bakobiibizo avatar Jan 08 '24 03:01 Bakobiibizo