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

First working demo , #149

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
Empty file added =
Empty file.
2 changes: 1 addition & 1 deletion api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM langchain/langchain

WORKDIR /app

RUN apt-get update && apt-get install -y \
RUN apt-get update && apt-get --allow-unauthenticated install -y \
build-essential \
curl \
software-properties-common \
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
context: .
dockerfile: pull_model.Dockerfile
environment:
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL-http://host.docker.internal:11434}
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL-localhost:11434}
- LLM=${LLM-llama2}
networks:
- net
Expand All @@ -35,8 +35,8 @@ services:
ports:
- 7687:7687
- 7474:7474
volumes:
- $PWD/data:/data
#volumes:
# - $PWD/data:/data
environment:
- NEO4J_AUTH=${NEO4J_USERNAME-neo4j}/${NEO4J_PASSWORD-password}
- NEO4J_PLUGINS=["apoc"]
Expand Down
49 changes: 0 additions & 49 deletions env.example

This file was deleted.

2 changes: 1 addition & 1 deletion pdf_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def main():
embedding=embeddings,
index_name="pdf_bot",
node_label="PdfBotChunk",
pre_delete_collection=True, # Delete existing PDF data
pre_delete_collection=False, # Delete existing PDF data
)
qa = RetrievalQA.from_chain_type(
llm=llm, chain_type="stuff", retriever=vectorstore.as_retriever()
Expand Down
Empty file added transferring
Empty file.