Home / Companies / DataStax / Blog / Post Details
Content Deep Dive

Build a Text and Image Search App with Astra DB Vector Search, NodeJS, Stargate’s New JSON API, and Stargate-Mongoose

Blog post from DataStax

Post Details
Company
Date Published
Author
Yuqi Du
Word Count
972
Company Posts That Month
4
Language
English
Hacker News Points
-
Post removed?
No
Summary

Vector search technology is being utilized to enhance a NodeJS application with generative AI capabilities by leveraging DataStax Astra DB and its vector search support through the stargate-mongoose driver and Stargate's JSON API. An engineer developed a NodeJS app called Photography-Site, designed to organize and showcase photographic work, integrating Astra DB's vector search for both text and image similarity searches. This involves using the OpenAI embedding API for text embeddings and Google MediaPipe for image embeddings, enabling users to search for photos by description or visual similarity. The application is built on the Express framework, employing Mongoose as the driver to access data in Astra DB, and it features functionalities such as image browsing, adding images, and searching with vector similarity. The stargate-mongoose driver, an alternative to the MongoDB driver, offers JavaScript developers a JSON-oriented data model experience with Cassandra's scalability, marking a significant advancement in Cassandra's evolution. The demo app, available in the stargate-mongoose-sample-apps repository, showcases the integration and capabilities of vector search in serverless Astra DB, providing a practical example of combining AI models with database technologies.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 22 1,580 209 74 -14%
Serverless 1 386 110 67 -56%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.