Chroma is a powerful vector-based database. It provides collections and official instruments to work with them directly in Python or Typescript. Now you can write simple instructions and do not care about embedding generation. Our tool will parse your code and automatically execute all necessary commands for you to make Chroma usage as simple as possible
Chroma Collections are like folders that store embeddings, which are special representations of data (like text or images) turned into numerical form so you can search, filter, and analyse them smartly.
You can work with files inside the collection with all possible Chroma instruments and even more 🤩 So you can:
- Add files with given name (content) and optional metadata;
- Get the concrete file content by its ID;
- Update the file content and metadata;
- Search for the nearest files with respect to their content;
- Delete the file;
- Drop the whole collection;
You should use a semicolon
;at the end of every command
ADD content of your file here metadata:topic=history,author=Alex;
- You must specify the command by typing
ADD - You must write any content (text) for the file. Embedding will be produced automatically
- You may specify metadata for your file. It could be useful while searching. To do so, write
metadataand then some key-value pairskey=valueseparated by a comma,
GET -> doc_123456789;
- You must specify the command by typing
GET - You must use
->to indicate the following number - You must specify the file ID as
doc_sequenceOfNumbers
UPDATE -> doc_123456789 new content of your file here metadata:NewTopic=geography,NewAuthor=Jack;
- You must specify the command by typing
UPDATE - You must use
->to indicate the following number - You must specify the file ID as
doc_sequenceOfNumbers - You must write any content (text) for the file. Embedding will be produced automatically
- You may specify metadata for your file. It could be useful while searching. To do so, write
metadataand then some key-value pairskey=valueseparated by a comma,
SEARCH -> 5 your search string metadata:key1=value1,key2=value2;
- You must specify the command by typing
SEARCH - You must use
->to indicate the following number - You must specify the number of expected files
- You must write you search string as a plane text. Chroma will return to you files with the closest content
- You may specify expected metadata for the files. To do so, write
metadataand then some key-value pairskey=valueseparated by a comma,
DELETE -> doc_123456789;
- You must specify the command by typing
DELETE - You must use
->to indicate the following number - You must specify the file ID as
doc_sequenceOfNumbers
DROP;
- You must specify the command by typing
DROP