nickmuchi commited on
Commit
0f6388d
1 Parent(s): 9cadbe9

Update pages/2_Twitter_GPT_Search.py

Browse files
Files changed (1) hide show
  1. pages/2_Twitter_GPT_Search.py +3 -1
pages/2_Twitter_GPT_Search.py CHANGED
@@ -76,7 +76,9 @@ try:
76
  text=f"Loading {model} embedding model and Generating Response..."
77
  ):
78
 
79
- tweets = embed_tweets(tweets,model,search_input,prompt)
 
 
80
 
81
 
82
  references = [doc.page_content for doc in tweets['source_documents']]
 
76
  text=f"Loading {model} embedding model and Generating Response..."
77
  ):
78
 
79
+ vectorstore = create_vectorstore(tweets,model)
80
+
81
+ tweets = embed_tweets(search_input,prompt,vectorstore)
82
 
83
 
84
  references = [doc.page_content for doc in tweets['source_documents']]