Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Nhost example vector database #1137

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 25 additions & 0 deletions examples/vector_databases/nhost/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# What is Nhost?

[Nhost](https://nhost.io/) is an enterprise-grade open-source backend platform built on top of GraphQL & PostgreSQL. Nhost offers the convenience of Firebase, with the extensibility of platforms like Render and Heroku.

Nhost is a great choice for full-stack teams that want to get out of the ground fast, but also want to have the flexibility to customize their backend as they grow.

## Vector search and PostgreSQL

Nhost supports vector search using the [pgvector](https://docs.nhost.io/guides/database/extensions#pgvector) open-source PostgreSQL extension. With `pgvector`, you can store and query high-dimensional vectors alongside your application data.

In this guide, we leverage Graphite, an AI service from the Nhost stack that automatically generates and keeps your embeddings up-to-date.

### Semantic search with Nhost Postgres and OpenAI

In this notebook you will learn how to:

1. Run a development instance of Nhost Postgres with the `pgvector` extension.
2. Leverage Auto-Embeddings & OpenAI to generate and keep your embeddings up-to-date automatically.
3. Perform semantic search using natural language and GraphQL.

## Additional Resources

- [Nhost AI product page](https://nhost.io/product/graphite)
- [Nhost AI documentation](https://docs.nhost.io/product/ai)
- [pgvector GitHub repository](https://github.com/pgvector/pgvector)