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

docs: add instructions for changing theme #87

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a8561f6
docs: add instructions for changing theme
lakshyaag May 2, 2024
78ea3ce
Deployment: add local model deployment option (#77)
lusmoura May 2, 2024
359e1c3
Docs: add env setup instructions (#88)
lusmoura May 2, 2024
ef6da4a
Cli: add dummy tests (#89)
lusmoura May 2, 2024
3e77823
backend: Set up next.js to proxy requests to the API (#86)
malexw May 2, 2024
31d9311
tools: Update default NEXT_PUBLIC_API_HOSTNAME for the new api routin…
malexw May 3, 2024
bc6c688
Apply suggestions from code review
lakshyaag May 7, 2024
034cbef
fix: broken backend URL in cli (#93)
May 5, 2024
0afe494
build(deps-dev): bump jinja2 from 3.1.3 to 3.1.4 (#105)
dependabot[bot] May 7, 2024
6ce0e5e
Tools: fix citations (#108)
lusmoura May 7, 2024
404793d
Update documentation (#107)
BeatrixCohere May 7, 2024
d539d6a
Fix link for docs (#110)
BeatrixCohere May 7, 2024
9358c2c
docs: move into new structure
lakshyaag May 7, 2024
968e2ef
backend: Refactor model deployments folder (#109)
tianjing-li May 7, 2024
110d47b
Add baseline Architecture to support auth + User sessions + Basic Aut…
tianjing-li May 7, 2024
dadce8a
docs: Update setup.md and makefile instruction to point to the right …
mauro-schilman May 8, 2024
cae4725
Frontend: Fix #97, change default python interpreter URL to http://te…
acanis May 8, 2024
afd3ea9
build(deps-dev): bump tqdm from 4.66.2 to 4.66.3 (#96)
dependabot[bot] May 8, 2024
1840776
CLI: install setup and community dependencies (#116)
lusmoura May 8, 2024
8067b1f
Fix doc links (#117)
BeatrixCohere May 8, 2024
5bb74d6
CLI: fix default values (#119)
lusmoura May 8, 2024
19dd403
github actions: add build + lint check workflow for coral_web (#81)
misspia-cohere May 8, 2024
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
9 changes: 6 additions & 3 deletions .env-template
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# REQUIRED VARIABLES
NEXT_PUBLIC_API_HOSTNAME=http://localhost:8000
NEXT_PUBLIC_API_HOSTNAME=http://backend:8000
DATABASE_URL=postgresql+psycopg2://postgres:postgres@db:5432

# TOOLS
PYTHON_INTERPRETER_URL=http://localhost:8080
PYTHON_INTERPRETER_URL=http://terrarium:8080
TAVILY_API_KEY=<API_KEY_HERE>
WOLFRAM_ALPHA_APP_ID=<APP_ID_HERE>

Expand All @@ -27,4 +27,7 @@ AZURE_CHAT_ENDPOINT_URL=<ENDPOINT URL>
USE_EXPERIMENTAL_LANGCHAIN=False

# Community features
USE_COMMUNITY_FEATURES='True'
USE_COMMUNITY_FEATURES='True'

# Auth session
SESSION_SECRET_KEY=<GENERATE_A_SECRET_KEY>
21 changes: 21 additions & 0 deletions .github/actions/js-install/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: js-install
description: Set up Node.js and pnpm, install dependencies

runs:
using: composite
steps:
- uses: pnpm/action-setup@v2.1.0
with:
version: "9.0.6"

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: "src/interfaces/coral_web/.nvmrc"
cache: "pnpm"
cache-dependency-path: "src/interfaces/coral_web/pnpm-lock.yaml"

- name: Install dependencies with pnpm
shell: bash
working-directory: src/interfaces/coral_web
run: pnpm install --frozen-lockfile
27 changes: 27 additions & 0 deletions .github/workflows/interface_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Interface Tests

on:
push:
branches: [main]
paths:
- src/interfaces/coral_web/**
pull_request: {}

jobs:
interface_tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/interfaces/coral_web

steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Node.js and install dependencies
uses: ./.github/actions/js-install
- name: Check coral_web is formatted
run: pnpm format
- name: Check coral_web can build
run: pnpm build
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN npm install -g pm2

# ENV for frontend
ENV NEXT_PUBLIC_API_HOSTNAME="http://localhost:8000"
ENV PYTHON_INTERPRETER_URL="http://localhost:8080"
ENV PYTHON_INTERPRETER_URL="http://terrarium:8080"

# Install frontend dependencies
WORKDIR /workspace/src/interfaces/coral_web
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ reset-db:
docker compose down
docker volume rm cohere_toolkit_db
setup:
poetry install --only setup --verbose
poetry run python3 cli/main.py
poetry install --with setup,community --verbose
poetry run python3 src/backend/cli/main.py
lint:
poetry run black .
poetry run isort .
Expand Down