anmolsahai commited on
Commit
0311039
1 Parent(s): e2bb6ed
__pycache__/langchain_pipeline.cpython-310.pyc CHANGED
Binary files a/__pycache__/langchain_pipeline.cpython-310.pyc and b/__pycache__/langchain_pipeline.cpython-310.pyc differ
 
langchain_pipeline.py CHANGED
@@ -22,15 +22,11 @@ models = {
22
  "gemini-pro": ChatGoogleGenerativeAI(model="gemini-pro")
23
  }
24
 
25
-
26
  def model_names():
27
  return models.keys()
28
 
29
-
30
- def pipeline(bytes, model_name):
31
- disclosure_text = high_level.extract_text(bytes)
32
- # disclosure_text = doc[0].page_content
33
- #
34
  astra = AstraDBVectorStore(
35
  api_endpoint=ASTRA_DB_API_ENDPOINT,
36
  token=ASTRA_DB_APPLICATION_TOKEN,
@@ -42,6 +38,7 @@ def pipeline(bytes, model_name):
42
 
43
  prompt = PromptTemplate.from_template(
44
  """
 
45
  law context:
46
 
47
  20-cv-12061 08-23-2021
 
22
  "gemini-pro": ChatGoogleGenerativeAI(model="gemini-pro")
23
  }
24
 
 
25
  def model_names():
26
  return models.keys()
27
 
28
+ def pipeline(file, model_name, balance_type, apsn_transactions, max_fees_per_day, min_overdrawn_fee, min_transaction_overdraft):
29
+ disclosure_text = high_level.extract_text(file)
 
 
 
30
  astra = AstraDBVectorStore(
31
  api_endpoint=ASTRA_DB_API_ENDPOINT,
32
  token=ASTRA_DB_APPLICATION_TOKEN,
 
38
 
39
  prompt = PromptTemplate.from_template(
40
  """
41
+
42
  law context:
43
 
44
  20-cv-12061 08-23-2021