examples/chroma-vectorstore-example/README.md
This example demonstrates how to use the Chroma vector store with LangChain in Go. It showcases various operations and queries on a vector store containing information about cities.
Vector Store Creation: The example starts by creating a new Chroma vector store using environment variables for configuration.
Adding Documents: It adds a list of documents to the vector store. Each document represents a city with its name, population, and area.
Similarity Searches: The example performs three different similarity searches:
a. Up to 5 Cities in Japan: Searches for cities located in Japan, limiting the results to 5 and using a score threshold.
b. A City in South America: Looks for a single city in South America, also using a score threshold.
c. Large Cities in South America: Searches for large cities in South America, using filters for area and population.
Result Display: Finally, it prints out the results of each search, showing the matching cities for each query.
This example is excellent for developers looking to understand how to integrate and use vector stores in their Go applications, particularly for semantic search and similarity matching tasks.