janar commited on
Commit
3add6e8
1 Parent(s): 5fa437b

remove unused imports

Browse files
Files changed (1) hide show
  1. api/routes/search.py +1 -3
api/routes/search.py CHANGED
@@ -6,8 +6,6 @@ import openai
6
  import io
7
  import os
8
  from pypdf import PdfReader
9
- from langchain.embeddings.openai import OpenAIEmbeddings
10
- from langchain.vectorstores import Qdrant
11
  from langchain.schema import Document
12
  from langchain.chains.question_answering import load_qa_chain
13
  from langchain.llms import OpenAI
@@ -24,7 +22,7 @@ async def create_or_update(name: Annotated[str, Body()], file_name: Annotated[st
24
  `file` to upload.
25
  `fileName` name of the file.
26
  """
27
-
28
  _db = ToyVectorStore.get_instance().get_collection(name)
29
  if not _db:
30
  #todo. fix this to create a collection, may be.
 
6
  import io
7
  import os
8
  from pypdf import PdfReader
 
 
9
  from langchain.schema import Document
10
  from langchain.chains.question_answering import load_qa_chain
11
  from langchain.llms import OpenAI
 
22
  `file` to upload.
23
  `fileName` name of the file.
24
  """
25
+
26
  _db = ToyVectorStore.get_instance().get_collection(name)
27
  if not _db:
28
  #todo. fix this to create a collection, may be.