satendra4u2022 commited on
Commit
e116c32
1 Parent(s): c4b49d5

Update query_data.py

Browse files
Files changed (1) hide show
  1. query_data.py +2 -2
query_data.py CHANGED
@@ -3,9 +3,8 @@ from langchain.embeddings import OpenAIEmbeddings
3
  from llamaapi import LlamaAPI
4
  from langchain.prompts import ChatPromptTemplate
5
  import os
6
- import asyncio
7
  import nest_asyncio
8
- nest_asyncio.apply()
9
 
10
  # Constants
11
  CHROMA_PATH = "chroma"
@@ -22,6 +21,7 @@ Answer the question based on the above context: {question}
22
  def generate_reworded_question(prompt):
23
 
24
  try:
 
25
  llama = LlamaAPI('LL-0tVJ5OwMLdglnL5Okd94ScFHyT6FMPP33oClu8i5cXWPScRswldmqXI7VH1JaT3x')
26
 
27
  # API Request
 
3
  from llamaapi import LlamaAPI
4
  from langchain.prompts import ChatPromptTemplate
5
  import os
 
6
  import nest_asyncio
7
+
8
 
9
  # Constants
10
  CHROMA_PATH = "chroma"
 
21
  def generate_reworded_question(prompt):
22
 
23
  try:
24
+ nest_asyncio.apply()
25
  llama = LlamaAPI('LL-0tVJ5OwMLdglnL5Okd94ScFHyT6FMPP33oClu8i5cXWPScRswldmqXI7VH1JaT3x')
26
 
27
  # API Request