-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from jasonacox/v0.15.0
Document Management - v0.15.0
- Loading branch information
Showing
18 changed files
with
2,393 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,3 +175,4 @@ agents/r | |
chatbot/tlocal | ||
chatbot/tt | ||
lab/t | ||
chatbot/uploads/?*.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Dockerfile for docman - TinyLLM Document Manager | ||
# | ||
# Author: Jason A. Cox | ||
# 22 Sept 2024 | ||
# https://github.com/jasonacox/TinyLLM | ||
|
||
# Use a base image | ||
FROM python:3.10-slim | ||
|
||
# Setting build related env vars | ||
ENV MAX_CHUNK_SIZE 1024 | ||
ENV UPLOAD_FOLDER uploads | ||
ENV HOST localhost | ||
ENV PORT 5001 | ||
ENV COLLECTIONS_ADMIN true | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install depencencies | ||
RUN pip install fastapi uvicorn jinja2 bs4 pypdf requests lxml aiohttp | ||
RUN pip install weaviate-client pdfreader pypandoc | ||
RUN pip install python-multipart | ||
|
||
# Copy local files into container | ||
COPY docman.py /app/docman.py | ||
COPY documents.py /app/documents.py | ||
COPY version.py /app/version.py | ||
COPY docman /app/docman | ||
|
||
# Network | ||
EXPOSE $PORT | ||
|
||
# Run the server | ||
CMD uvicorn docman:app --host 0.0.0.0 --port $PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.