Giter Club home page Giter Club logo

Comments (7)

deepchatwithai avatar deepchatwithai commented on May 28, 2024

supabase start

-bash: supabase: command not found

this result all the time

I'm sure I have installed docker and run it in linux.
Any one could help me : (

from nextjs-openai-doc-search.

toanbku avatar toanbku commented on May 28, 2024

I believe that your OpenAI account has run out of balance, resulting in the inability to perform queries. You can try checking your account here https://platform.openai.com/account/usage

from nextjs-openai-doc-search.

gregnr avatar gregnr commented on May 28, 2024

Hi @deepchatwithai! A few things we need to debug here:

  1. How is your project structured? Is it based off a template or tutorial? Is your repo public & can you link it here so we can help debug?
  2. OpenAI keys shouldn't be used client side. Are you making requests to OpenAI directly from your client, or through a server (eg. edge function)?
  3. For the supabase CLI, confirming that you have installed it using these instructions? If you install via npm, you should prefix each command with npx:
    npx supabase ...

from nextjs-openai-doc-search.

deepchatwithai avatar deepchatwithai commented on May 28, 2024

Hi @deepchatwithai! A few things we need to debug here:

  1. How is your project structured? Is it based off a template or tutorial? Is your repo public & can you link it here so we can help debug?
  2. OpenAI keys shouldn't be used client side. Are you making requests to OpenAI directly from your client, or through a server (eg. edge function)?
  3. For the supabase CLI, confirming that you have installed it using these instructions? If you install via npm, you should prefix each command with npx:
    npx supabase ...

Thanks so much for your reply!

I'll try npx prefix first - -!

never used this before...

My test site was build up with vercel template, and had been reset last week.

I'll try it again.

and I suppose that the doc shall be vectored into supabase first, then the frontend could search after vectoring finished. Since I failed in vectoring docs, the frontend can't get any data.

Is my suppose be right?

Anyway, I'll try again and thanks so much for your reply and for the great work of supabase!

from nextjs-openai-doc-search.

gregnr avatar gregnr commented on May 28, 2024

Yep - you'll need to pre-process your docs (create embeddings + store in DB) first. Let me know if that works!

from nextjs-openai-doc-search.

 avatar commented on May 28, 2024

Hello guys,
I am having the same issue trying to make it run. Actually, my node_module directory was missing - not a problem, but when I tried running npm install I got this:

@PublicTrades ➜ /workspaces/nextjs-openai-doc-search-starter (main) $ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/typescript
npm ERR!   typescript@"5.0.2" from the root project
npm ERR!   peerOptional typescript@">=3.3.1" from [email protected]
npm ERR!   node_modules/eslint-config-next
npm ERR!     eslint-config-next@"13.2.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@">= 4.5.5 < 5" from [email protected]
npm ERR! node_modules/class-variance-authority
npm ERR!   class-variance-authority@"^0.4.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/typescript
npm ERR!   peerOptional typescript@">= 4.5.5 < 5" from [email protected]
npm ERR!   node_modules/class-variance-authority
npm ERR!     class-variance-authority@"^0.4.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /home/codespace/.npm/_logs/2023-05-25T03_35_55_229Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /home/codespace/.npm/_logs/2023-05-25T03_35_55_229Z-debug-0.log
@PublicTrades ➜ /workspaces/nextjs-openai-doc-search-starter (main) $ 

I am working on it via codespace, would this be the reason?

from nextjs-openai-doc-search.

thorwebdev avatar thorwebdev commented on May 28, 2024

You can find a step by step video guide here: https://youtu.be/xmfNUCjszh4

from nextjs-openai-doc-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.