Skip to content

Commit

Permalink
Merge pull request #140 from eye-on-surveillance/AI/deployment-error
Browse files Browse the repository at this point in the history
 AI/deployment-error
  • Loading branch information
ayyubibrahimi authored Nov 8, 2023
2 parents 26fb60b + cfeda2d commit 17b931b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/cache/faiss_index_general.dvc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
outs:
- md5: 1da4b1d88045a2adbc87e5d11c0a6af8.dir
- md5: 0b178596139757a23f4b74274688c17c.dir
size: 85685475
nfiles: 2
hash: md5
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/cache/faiss_index_in_depth.dvc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
outs:
- md5: 038f50d4fd4c158b138d626f0fe19c2e.dir
- md5: 19c005b01a5c795c66428d281fd5222e.dir
size: 85685475
nfiles: 2
hash: md5
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from langchain.chains import LLMChain, HypotheticalDocumentEmbedder
from langchain.prompts import PromptTemplate
from langchain.vectorstores.faiss import FAISS
from langchain.chat_models import ChatOpenAI
from langchain import OpenAI
from pathlib import Path
import shutil

Expand All @@ -17,7 +17,7 @@


def create_embeddings():
llm = ChatOpenAI(model="gpt-4")
llm = OpenAI(model="gpt-4")

base_embeddings = OpenAIEmbeddings()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
outs:
- md5: 1da4b1d88045a2adbc87e5d11c0a6af8.dir
- md5: 0b178596139757a23f4b74274688c17c.dir
size: 85685475
nfiles: 2
hash: md5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
outs:
- md5: 038f50d4fd4c158b138d626f0fe19c2e.dir
- md5: 19c005b01a5c795c66428d281fd5222e.dir
size: 85685475
nfiles: 2
hash: md5
Expand Down
3 changes: 2 additions & 1 deletion packages/googlecloud/functions/getanswer/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from langchain.chains import LLMChain, HypotheticalDocumentEmbedder
from langchain.prompts import PromptTemplate
from langchain.chat_models import ChatOpenAI
from langchain import OpenAI
import logging
import pandas as pd

Expand Down Expand Up @@ -37,7 +38,7 @@ def get_dbs():


def create_embeddings():
llm = ChatOpenAI(model="gpt-4")
llm = OpenAI(model="gpt-4")

base_embeddings = OpenAIEmbeddings()

Expand Down
4 changes: 2 additions & 2 deletions packages/googlecloud/functions/getanswer/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ functions-framework
flask
google-cloud-error-reporting
python-dotenv
langchain==0.0.330
openai
langchain
openai==1.1.1
google-api-python-client # Google API
google-search-results # SerpAPI
youtube-transcript-api
Expand Down

0 comments on commit 17b931b

Please sign in to comment.