Skip to content
Merged
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
3cd5106
update product recommendation example description
badmonster0 May 18, 2025
e32cfea
rename folder
badmonster0 May 18, 2025
dddee93
Update README.md
badmonster0 May 18, 2025
e43a28e
Update README.md
badmonster0 May 18, 2025
ade9afb
Update README.md
badmonster0 May 19, 2025
2bead87
Update README.md
badmonster0 May 19, 2025
a374650
update text_embedding with new query handler
badmonster0 May 20, 2025
3df050d
Update main.py
badmonster0 May 20, 2025
0471abe
Update README.md
badmonster0 May 20, 2025
c3c09b0
Update README.md
badmonster0 May 20, 2025
bab25a4
Update README.md
badmonster0 May 20, 2025
4f0b607
Update README.md
badmonster0 May 20, 2025
9ffe7ed
Update README.md
badmonster0 May 20, 2025
631cad7
Update README.md
badmonster0 May 20, 2025
8008d85
Update README.md
badmonster0 May 20, 2025
2aa1bc8
qdrant
badmonster0 May 20, 2025
c76db2d
Update README.md
badmonster0 May 20, 2025
f5e965d
Update README.md
badmonster0 May 20, 2025
eed7a25
Update README.md
badmonster0 May 20, 2025
12fc9be
Update README.md
badmonster0 May 20, 2025
407eda2
Update README.md
badmonster0 May 20, 2025
44d93dd
Update README.md
badmonster0 May 20, 2025
689d359
Update README.md
badmonster0 May 20, 2025
a72270c
Merge branch 'jelly-ex2' of https://github.com/cocoindex-io/cocoindex…
badmonster0 May 20, 2025
eb56fe2
Update main.py
badmonster0 May 20, 2025
e69c212
Update main.py
badmonster0 May 20, 2025
9272a8a
Update main.py
badmonster0 May 20, 2025
7967914
Update main.py
badmonster0 May 20, 2025
35b19ba
Merge branch 'main' into jelly-ex2
badmonster0 May 20, 2025
3577694
upgrade query handling for pdf embedding
badmonster0 May 20, 2025
f127c54
Merge branch 'main' into jelly-ex2
badmonster0 May 20, 2025
9741fa8
Update README.md
badmonster0 May 20, 2025
818b806
Update README.md
badmonster0 May 20, 2025
b5fbae6
Update README.md
badmonster0 May 20, 2025
3ab5ddc
Update README.md
badmonster0 May 20, 2025
58d7cba
Merge branch 'main' into jelly-ex2
badmonster0 May 20, 2025
331e0e2
Merge branch 'main' into jelly-ex2
badmonster0 May 20, 2025
ff43f46
Update main.py
badmonster0 May 20, 2025
55ebc4a
google drive example update query handler
badmonster0 May 20, 2025
a79d279
Merge branch 'main' into jelly-ex2
badmonster0 May 20, 2025
6e72fb2
Update README.md
badmonster0 May 21, 2025
b46cf77
Update README.md
badmonster0 May 21, 2025
d2725e0
Merge branch 'main' into jelly-ex2
badmonster0 May 21, 2025
b874512
rename to image_search (to be more consistent with other examples)
badmonster0 May 21, 2025
2402c78
update query handling for image search
badmonster0 May 21, 2025
87bd37b
Merge branch 'main' into jelly-ex2
badmonster0 May 21, 2025
ac43f78
Update README.md
badmonster0 May 21, 2025
b645bb1
Update README.md
badmonster0 May 21, 2025
979cde9
Merge branch 'main' into jelly-ex2
badmonster0 May 21, 2025
4bc0486
Merge branch 'jelly-ex2' of https://github.com/cocoindex-io/cocoindex…
badmonster0 May 21, 2025
0b5da66
Merge branch 'main' into jelly-ex2
badmonster0 May 21, 2025
32fcd4d
simplify the fast api example
badmonster0 May 21, 2025
5a01dc8
upgrade query handling
badmonster0 May 21, 2025
99a1e38
Update README.md
badmonster0 May 21, 2025
57ac81d
Update README.md
badmonster0 May 21, 2025
d8b364f
fix docker
badmonster0 May 21, 2025
a8e94ba
Update README.md
badmonster0 May 21, 2025
a208c8e
Update README.md
badmonster0 May 21, 2025
12bd609
Merge branch 'main' into jelly-ex2
badmonster0 May 21, 2025
d312bc5
Update Image search project description
badmonster0 May 22, 2025
6e80f35
Merge branch 'main' into jelly-ex2
badmonster0 May 22, 2025
1750b05
Merge branch 'jelly-ex2' of https://github.com/cocoindex-io/cocoindex…
badmonster0 May 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 32 additions & 23 deletions examples/image_search/README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
# Image Search with CocoIndex
[![GitHub](https://img.shields.io/github/stars/cocoindex-io/cocoindex?color=5B5BD6)](https://github.com/cocoindex-io/cocoindex)

![image](https://github.com/user-attachments/assets/3a696344-c9b4-46e8-9413-6229dbb8672a)
We will build live image search and query it with natural language, using multimodal embedding model. We are going use CocoIndex to build real-time indexing flow. During running, you can add new files to the folder and it only process changed files and will be indexed within a minute.

We appreciate a star ⭐ at [CocoIndex Github](https://github.com/cocoindex-io/cocoindex) if this is helpful.

<img width="1105" alt="cover" src="https://github.com/user-attachments/assets/7f1a59e0-77cf-45ed-b45b-4e3eb6e826b9" />

## Technologies
- CocoIndex for ETL and live update
- CLIP ViT-L/14 - Embeddings Model for images and query
- Qdrant for Vector Storage
- CLIP ViT-L/14 - Embeddings Model for both images and text
- Live Update

## Make sure Postgres and Qdrant are running
```
docker run -d -p 6334:6334 -p 6333:6333 qdrant/qdrant
export COCOINDEX_DATABASE_URL="postgres://cocoindex:cocoindex@localhost/cocoindex"
```

## Create Qdrant Collection
```
curl -X PUT 'http://localhost:6333/collections/image_search' \
-H 'Content-Type: application/json' \
-d '{
"vectors": {
"embedding": {
"size": 768,
"distance": "Cosine"
- FastApi for backend


## Setup
- Make sure Postgres and Qdrant are running
```
docker run -d -p 6334:6334 -p 6333:6333 qdrant/qdrant
export COCOINDEX_DATABASE_URL="postgres://cocoindex:cocoindex@localhost/cocoindex"
```

- Create Qdrant Collection
```
curl -X PUT 'http://localhost:6333/collections/image_search' \
-H 'Content-Type: application/json' \
-d '{
"vectors": {
"embedding": {
"size": 768,
"distance": "Cosine"
}
}
}
}'
```
}'
```

## Run Backend
## Run
- Install dependencies:
```
pip install -e .
Expand Down