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

Support build image for ARM64 #311

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ WORKDIR /code

COPY --from=requirements-stage /tmp/requirements.txt /code/requirements.txt

ENV PATH="${PATH}:/root/.cargo/bin"
RUN curl --proto '=https' --tlsv1.3 -o rust.sh -sSf https://sh.rustup.rs && \
chmod +x rust.sh;./rust.sh -y

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . /code/
Expand Down
2 changes: 1 addition & 1 deletion datastore/providers/chroma_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
if client:
self._client = client
else:
if in_memory:
if in_memory == "True":
settings = (
chromadb.config.Settings(
chroma_db_impl="duckdb+parquet",
Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.9'

services:
server:
image: chatgpt-retrieval-plugin:latest
container_name: chatgpt-api
restart: always
env_file:
- .env
ports:
- 8080:8080
volumes:
- ./:/code/
8 changes: 8 additions & 0 deletions env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Update this file and change copy to `.env`
CHROMA_COLLECTION=
CHROMA_IN_MEMORY=
CHROMA_HOST=
BEARER_TOKEN=
OPENAI_API_KEY=
CHROMA_PORT=
DATASTORE=chroma
Loading