Hidayatmahar commited on
Commit
dff9474
Β·
verified Β·
1 Parent(s): 255ab1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,11 +16,11 @@ pinecone_api_key = st.secrets["PINECONE_API_KEY"] # βœ… Now it's properly defin
16
  pc = Pinecone(api_key=pinecone_api_key)
17
 
18
  # βœ… Step 3: Connect to your existing Pinecone index
19
- index_name = "legal-docs-index-dji2ip8"
20
  index = pc.Index(index_name)
21
 
22
  # βœ… Step 4: Load embedding model
23
- model = SentenceTransformer("all-MiniLM-L6-v2")
24
 
25
  # βœ… Step 5: Load dataset (for reference)
26
  dataset = load_dataset("macadeliccc/US-LegalKit", split="train")
 
16
  pc = Pinecone(api_key=pinecone_api_key)
17
 
18
  # βœ… Step 3: Connect to your existing Pinecone index
19
+ index_name = "legal-docs-index"
20
  index = pc.Index(index_name)
21
 
22
  # βœ… Step 4: Load embedding model
23
+ model = SentenceTransformer("text-embedding-ada-002")
24
 
25
  # βœ… Step 5: Load dataset (for reference)
26
  dataset = load_dataset("macadeliccc/US-LegalKit", split="train")