π Milvus Vector Store with Local Embeddings Example π
Welcome to this exciting example showcasing the power of Milvus vector store combined with local embeddings using Hugging Face's Text Embeddings Inference (TEI)! π
π§ What Does This Example Do?
This Go program demonstrates how to:
- Set up a Milvus vector store
- Use local embeddings with Hugging Face's TEI
- Add documents about cities to the vector store
- Perform similarity searches on the stored data
The example focuses on storing information about various cities worldwide and then querying this data to find cities based on different criteria.
ποΈ City Data
We store information about cities including:
- Tokyo, Kyoto, Hiroshima, and other Japanese cities
- European cities like Paris and London
- South American cities like Santiago, Buenos Aires, and Rio de Janeiro
Each city entry includes:
- City name
- Population
- Area
π Similarity Searches
The program runs three example searches:
- Up to 5 Cities in Japan: Finds Japanese cities in the dataset
- A City in South America: Locates a South American city
- Cities in Europe: Searches for European cities
π How It Works
- The program sets up a Milvus vector store with local embeddings
- City data is added to the vector store
- Similarity searches are performed using natural language queries
- Results are displayed, showing matching cities with their population and area
π οΈ Setup
To run this example, make sure you have:
- Docker and Docker Compose installed
- Go environment set up
- Milvus and Text Embeddings Inference services running (use the provided docker-compose.yml)
π Have Fun!
Enjoy exploring this example and learning about vector stores, embeddings, and similarity searches! Feel free to modify the queries or add more cities to see how the results change. Happy coding! π