Skip to content

Commit

Permalink
Merge pull request #155 from NimbleBoxAI/fury
Browse files Browse the repository at this point in the history
v2 Koval
  • Loading branch information
vgulerianb authored Oct 13, 2023
2 parents 044e1c6 + c40496c commit 2a8cc5d
Show file tree
Hide file tree
Showing 118 changed files with 5,036 additions and 3,130 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@ api_docs/_build/
api_docs/_static/
cf
locust_file.py
demo/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "cf_internal"]
path = cf_internal
url = https://github.com/NimbleBoxAI/cf_internal.git
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ COPY ./server/pyproject.toml /app
COPY ./server/README.md /app
WORKDIR /app
RUN python3 -m pip install PyMySQL
RUN python3 -m pip install langflow==0.0.54
RUN python3 -m pip install -e .
WORKDIR /

Expand Down
45 changes: 45 additions & 0 deletions Dockerfile.private
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# first stage is to build the client
FROM node:16-alpine3.14 as builder
WORKDIR /app
COPY ./client/package*.json ./client/yarn.lock ./
RUN yarn install --frozen-lockfile
COPY ./client .
RUN yarn build
ENV NODE_ENV production

# then we copy over the server
FROM python:3.9
RUN mkdir /app

# this is copying over the chainfury engine and install it
COPY ./chainfury /app/chainfury
COPY pyproject.toml /app
COPY README.md /app
WORKDIR /app
RUN python3 -m pip install .\[all\]
WORKDIR /

# this is copying over the chainfury-internal and installing it
COPY ./cf_internal /app/cf_internal
WORKDIR /app
RUN python3 -m pip install ./cf_internal
WORKDIR /

# copy over the server files including the server installer, since chainfury is already installed
# it would use the cached version and not try to install it again from pypi
COPY ./server/chainfury_server /app/chainfury_server
COPY ./server/pyproject.toml /app
COPY ./server/README.md /app
WORKDIR /app
RUN python3 -m pip install PyMySQL
RUN python3 -m pip install -e .
WORKDIR /

# Copy over the files from the client build
RUN rm -rf /app/static
RUN rm -rf /app/templates
COPY --from=builder /app/dist/. /app/chainfury_server/static/.

WORKDIR /app/chainfury_server
EXPOSE 8000
CMD ["python3", "server.py", "--host", "0.0.0.0", "--port", "8000", "--pre", "['cf_internal']"]
7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.api.auth.rst

This file was deleted.

7 changes: 7 additions & 0 deletions api_docs/cf_server/chainfury_server.api.chains.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
chainfury\_server.api.chains module
===================================

.. automodule:: chainfury_server.api.chains
:members:
:undoc-members:
:show-inheritance:
7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.api.chatbot.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.api.dashboard.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.api.feedback.rst

This file was deleted.

4 changes: 2 additions & 2 deletions api_docs/cf_server/chainfury_server.api.fury.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fury module
===========
chainfury\_server.api.fury module
=================================

.. automodule:: chainfury_server.api.fury
:members:
Expand Down

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.api.langflow.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.api.metrics.rst

This file was deleted.

4 changes: 2 additions & 2 deletions api_docs/cf_server/chainfury_server.api.prompts.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
prompts module
==============
chainfury\_server.api.prompts module
====================================

.. automodule:: chainfury_server.api.prompts
:members:
Expand Down
12 changes: 4 additions & 8 deletions api_docs/cf_server/chainfury_server.api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ chainfury\_server.api package
:undoc-members:
:show-inheritance:

Submodules
----------

.. toctree::
:maxdepth: 4

chainfury_server.api.auth
chainfury_server.api.chatbot
chainfury_server.api.dashboard
chainfury_server.api.feedback
chainfury_server.api.chains
chainfury_server.api.fury
chainfury_server.api.intermediate_steps
chainfury_server.api.langflow
chainfury_server.api.metrics
chainfury_server.api.prompts
chainfury_server.api.template
chainfury_server.api.user
7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.api.template.rst

This file was deleted.

4 changes: 2 additions & 2 deletions api_docs/cf_server/chainfury_server.api.user.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
user module
===========
chainfury\_server.api.user module
=================================

.. automodule:: chainfury_server.api.user
:members:
Expand Down
7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.commons.config.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.commons.constants.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.commons.gpt_rating.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.commons.metrics_utils.rst

This file was deleted.

17 changes: 0 additions & 17 deletions api_docs/cf_server/chainfury_server.commons.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.commons.types.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.commons.utils.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.database_constants.rst

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.database_utils.prompt.rst

This file was deleted.

17 changes: 0 additions & 17 deletions api_docs/cf_server/chainfury_server.database_utils.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.engines.langflow.rst

This file was deleted.

5 changes: 3 additions & 2 deletions api_docs/cf_server/chainfury_server.engines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ chainfury\_server.engines package
:undoc-members:
:show-inheritance:

Submodules
----------

.. toctree::
:maxdepth: 4

chainfury_server.engines.fury
chainfury_server.engines.langflow
chainfury_server.engines.registry

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.plugins.base.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.plugins.echo.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.plugins.handler.rst

This file was deleted.

7 changes: 0 additions & 7 deletions api_docs/cf_server/chainfury_server.plugins.loader.rst

This file was deleted.

22 changes: 0 additions & 22 deletions api_docs/cf_server/chainfury_server.plugins.rst

This file was deleted.

Loading

0 comments on commit 2a8cc5d

Please sign in to comment.