Skip to content

Commit

Permalink
chore(build): install all deps so we can use gen3
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 committed Oct 31, 2023
1 parent 098770a commit 9ace072
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 167 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ WORKDIR /$appname
COPY poetry.lock pyproject.toml /$appname/
COPY ./docs/openapi.yaml /$appname/docs/openapi.yaml
RUN poetry config virtualenvs.in-project true \
&& poetry install -vv --no-root --only main --no-interaction \
&& poetry install -vv --no-root --no-interaction \
&& poetry show -v

# copy source code ONLY after installing dependencies
COPY . /$appname

# install gen3discoveryai
RUN poetry config virtualenvs.in-project true \
&& poetry install -vv --no-dev --no-interaction \
&& poetry install -vv --no-interaction \
&& poetry show -v

#Creating the runtime image
Expand Down
2 changes: 2 additions & 0 deletions gen3discoveryai/topic_chains/question_answer.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def store_knowledge(
)
self.vectorstore.add_documents(documents)

logging.debug(f"Added {len(documents)} documents")

# force persist to disk
logging.info(
f"Persisting knowledge store collection for {self.topic} to disk..."
Expand Down
Loading

0 comments on commit 9ace072

Please sign in to comment.