UnnamedUnknownx1234987789489 commited on
Commit
545ff15
1 Parent(s): 96839f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -27,15 +27,10 @@ from langchain_community.vectorstores.utils import filter_complex_metadata
27
  from langchain.schema import Document
28
  from langgraph.graph import START, END, StateGraph
29
  from langchain_community.document_loaders.directory import DirectoryLoader
30
-
31
- from functions import *
32
  import pprint
33
  from pathlib import Path
34
- from sqlalchemy import create_engine
35
  from langchain.retrievers import ContextualCompressionRetriever
36
-
37
  from langchain.storage import InMemoryByteStore
38
-
39
  from langchain.text_splitter import RecursiveCharacterTextSplitter
40
  from langchain.retrievers.document_compressors import CrossEncoderReranker
41
  from langchain_community.cross_encoders import HuggingFaceCrossEncoder
@@ -45,15 +40,9 @@ from functions import *
45
 
46
  from langchain.callbacks.manager import CallbackManager
47
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
48
- from langchain.retrievers.document_compressors import FlashrankRerank
49
 
50
 
51
- os.environ["LANGCHAIN_API_KEY"] = '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'
52
- os.environ["LANGCHAIN_TRACING_V2"]="true"
53
- os.environ["LANGCHAIN_ENDPOINT"]= "https://api.smith.langchain.com"
54
- os.environ["LANGCHAIN_PROJECT"] = "Lithuanian_law_v2_LT_Kalba"
55
- os.environ["GROQ_API_KEY"] = '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'
56
- os.environ["SERPER_API_KEY"] = '6f80701ecd004c2466e8bd7bcebacacf89c74b84'
57
 
58
 
59
 
 
27
  from langchain.schema import Document
28
  from langgraph.graph import START, END, StateGraph
29
  from langchain_community.document_loaders.directory import DirectoryLoader
 
 
30
  import pprint
31
  from pathlib import Path
 
32
  from langchain.retrievers import ContextualCompressionRetriever
 
33
  from langchain.storage import InMemoryByteStore
 
34
  from langchain.text_splitter import RecursiveCharacterTextSplitter
35
  from langchain.retrievers.document_compressors import CrossEncoderReranker
36
  from langchain_community.cross_encoders import HuggingFaceCrossEncoder
 
40
 
41
  from langchain.callbacks.manager import CallbackManager
42
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
 
43
 
44
 
45
+
 
 
 
 
 
46
 
47
 
48