Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -2
- app/rag.py +1 -0
Dockerfile
CHANGED
@@ -6,11 +6,15 @@ COPY ./requirements.txt /code/requirements.txt
|
|
6 |
|
7 |
COPY ./app /code/app
|
8 |
|
|
|
|
|
|
|
|
|
9 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
10 |
|
11 |
-
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
12 |
|
13 |
-
USER docker
|
14 |
|
15 |
EXPOSE 7860
|
16 |
|
|
|
6 |
|
7 |
COPY ./app /code/app
|
8 |
|
9 |
+
# python -m venv venv
|
10 |
+
# source venv/bin/activate
|
11 |
+
# pip install llama-index
|
12 |
+
|
13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
|
15 |
+
# RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
16 |
|
17 |
+
# USER docker
|
18 |
|
19 |
EXPOSE 7860
|
20 |
|
app/rag.py
CHANGED
@@ -13,6 +13,7 @@ from llama_index.llms.llama_cpp import LlamaCPP
|
|
13 |
from llama_index.embeddings.fastembed import FastEmbedEmbedding
|
14 |
from llama_index.vector_stores.qdrant import QdrantVectorStore
|
15 |
from qdrant_client import QdrantClient
|
|
|
16 |
|
17 |
|
18 |
QDRANT_API_URL = os.getenv('QDRANT_API_URL')
|
|
|
13 |
from llama_index.embeddings.fastembed import FastEmbedEmbedding
|
14 |
from llama_index.vector_stores.qdrant import QdrantVectorStore
|
15 |
from qdrant_client import QdrantClient
|
16 |
+
# from llama_index.readers.file.docs.base import DocxReader, HWPReader, PDFReader
|
17 |
|
18 |
|
19 |
QDRANT_API_URL = os.getenv('QDRANT_API_URL')
|