Skip to content

Conversation

@par4m
Copy link
Contributor

@par4m par4m commented May 9, 2025

Enhances Image Search Example by adding Live Update

  • Threading: Runs the live updater in the background,separate from FastAPI’s main thread.
  • Asyncio: Runs the async updater logic

Copy link
Member

@badmonster0 badmonster0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For get_image_caption, we can consider enable cache:

https://cocoindex.io/docs/core/custom_function#parameters-for-custom-functions

@badmonster0
Copy link
Member

With this change, the README can also be simplified. We don't need to run cocoindex update separately:

python main.py cocoindex update

@badmonster0
Copy link
Member

badmonster0 commented May 12, 2025

Awesome! This example is more fantastics now! Thank you very much!!

@badmonster0 badmonster0 merged commit 3084754 into cocoindex-io:main May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants