Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Feb 14, 2024
1 parent 60a31e3 commit f5c602d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
This repo is an implementation of a locally hosted chatbot specifically focused on question answering over the [LangChain documentation](https://langchain.readthedocs.io/en/latest/).
Built with [LangChain](https://github.com/langchain-ai/langchainjs/), and [Next.js](https://nextjs.org).

Deployed version: [chatjs.langchain.com](https://chatjs.langchain.com)
Deployed version: [chatjs.langchain.com](https://github.com/langchain-ai/chat-langchain)

> Looking for the Python version? Click [here](https://chat.langchain.com)
The app leverages LangChain's streaming API to update the page in real time for multiple users.

## ✅ Running locally
1. Install dependencies via: `yarn.install`.
1. Install dependencies via: `yarn install`.
2. Set the required environment variables listed inside [`backend/.env.example`](backend/.env.example) for the backend, and [`frontend/.env.example`](frontend/.env.example) for the frontend.

### Ingest
Expand Down
4 changes: 3 additions & 1 deletion frontend/app/utils/constants.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
const apiBasePath = process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : `http://localhost:3000`
const apiBasePath = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: `http://localhost:3000`;
export const apiBaseUrl = `${apiBasePath}/api`;

0 comments on commit f5c602d

Please sign in to comment.