---
title: "Discussion on \"Semantic Search using OpenAI Embedding and Postgres Vector DB in NodeJS\" | Hashnode"
description: "Discussion on \"Semantic Search using OpenAI Embedding and Postgres Vector DB in NodeJS\". Learn how to implement Semantic Search using OpenAI Embedding and Postgres Vector DB in NodeJS. Get fast and accurate search results with this step-by-step"
url: "https://hashnode.com/posts/semantic-search-using-openai-embedding-and-postgres-vector-db-in-nodejs/641968cbb4765ce9298db7bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Semantic Search using OpenAI Embedding and Postgres Vector DB in NodeJS](https://dev.fandyaditya.com/semantic-search-using-openai-embedding-and-postgres-vector-db-in-nodejs?utm_source=hashnode&utm_medium=feed)

Learn how to implement Semantic Search using OpenAI Embedding and Postgres Vector DB in NodeJS. Get fast and accurate search results with this step-by-step

Mar 21, 2023 · 5 min read · dev.fandyaditya.com  
Updated Mar 23, 2023  
Read the article

-   [#openai](https://hashnode.com/tag/openai)
-   [#semantic-search](https://hashnode.com/tag/semantic-search)
-   [#postgresql](https://hashnode.com/tag/postgresql)

## Written by

[Fandy Aditya Wirana](https://hashnode.com/@fandyadityaw)

@fandyadityaw · Bali, Indonesia

  
[View profile](https://hashnode.com/@fandyadityaw)

I experiment with things and then share my findings with others.

I am always eager to experiment with new technology and share my experiences and insights gained through trial and error. Currently working as Backend Engineer.

## Responses 1

Markdown supported · ⌘↵ to post

[Jeronimo Reguera](https://hashnode.com/@Jero2760)

[Jun 19, 2023](https://hashnode.com/posts/semantic-search-using-openai-embedding-and-postgres-vector-db-in-nodejs/641968cbb4765ce9298db7bb/comment/64909ab6c167b41645fcfc4b)

Great post, congratulations! I'm stuck on error 400 in the last step: node server.js ("'input' is a required property", 'invalid\_request\_error'). Any support?

[Fandy Aditya Wirana](https://hashnode.com/@fandyadityaw)

[Jun 20, 2023](https://hashnode.com/posts/semantic-search-using-openai-embedding-and-postgres-vector-db-in-nodejs/641968cbb4765ce9298db7bb/comment/64909ab6c167b41645fcfc4b#reply-64919692aa3e031681683013)

Hey, I think that error from openAI Create embedding response. Maybe they detected no input from the apps Are you already add value to the `q` params?

[Jeronimo Reguera](https://hashnode.com/@Jero2760)

[Jun 20, 2023](https://hashnode.com/posts/semantic-search-using-openai-embedding-and-postgres-vector-db-in-nodejs/641968cbb4765ce9298db7bb/comment/64909ab6c167b41645fcfc4b#reply-6491a4f6c167b41645fd1ec0)

[Fandy Aditya Wirana](https://hashnode.com/@fandyadityaw) Hi, you are right, I just needed the input (i.e. the q param), but did not expect to break the code trying to access localhost:9000. Thanks for your reply.

[Fandy Aditya Wirana](https://hashnode.com/@fandyadityaw)

[Jun 21, 2023](https://hashnode.com/posts/semantic-search-using-openai-embedding-and-postgres-vector-db-in-nodejs/641968cbb4765ce9298db7bb/comment/64909ab6c167b41645fcfc4b#reply-64925e8e68231d2c9f3307c9)

You're welcome!
