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

Improve documentation #97

Open
gebeer opened this issue May 14, 2023 · 2 comments
Open

Improve documentation #97

gebeer opened this issue May 14, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@gebeer
Copy link

gebeer commented May 14, 2023

Is your proposal related to a problem?

Having difficulties setting this up

I installed and started https://github.com/homanp/langchain-ui-api and have a running Supabase instance following https://supabase.com/docs/guides/self-hosting/docker
Then I started langchain-ui but am getting a Type Error: invalid URL related to /langchain-ui/node_modules/next-auth/utils/parse-url.js (17:16)

I guess I need to supply the nextauth related credentials inside .env. But this is where I'm starting to get lost.

What also boggles me:
By default the Supabase instance runs on localhost:8000. I guess this causes a conflict with uvicorn also using localhost:8000? Again it would be nice if this was better documented.

Describe the solution you'd like

This project might be targeted at the more experienced users. But it would be great if the documentation could expand a bit more on setting things up, especially Nextauth, Metal API and all the other stuff that seems to be required in .env (apart from OPEN_API_KEY which should be quite obvious)
That would be much appreciated.

@gebeer gebeer added the enhancement New feature or request label May 14, 2023
@homanp
Copy link
Owner

homanp commented May 15, 2023

@gebeer Thanks for this issue, and you are completely right. I've been working hard to separate the UI from the actual backend and I'm done with the back-end part but not the UI itself. I'm hoping to update the documentation and functionality as soon as possible.

@JungeWerther
Copy link

I think some confusion is caused by setting up supabase with prisma. You need to connect supabase (I did by setting up connection pooling and direct url, see https://www.prisma.io/docs/guides/database/supabase, don't forget to append ?pgbouncer=true to DATABASE_URL ) and run 'yarn prisma migrate dev' from the command line with prisma CLI.

next setup github oauth with callback_url = http://localhost:3000 (=NEXTAUTH_URL) and add a random hash for NEXTAUTH_SECRET.

Now your database schema is in Supabase and github should redirect to localhost. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants