local_doc_qa.py

This commit is contained in:
yawudede 2023-05-22 10:39:55 +08:00 committed by GitHub
parent 9140a5e70c
commit 4634a578f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import models.shared as shared
from agent import bing_search
from langchain.docstore.document import Document
from sentence_transformers import SentenceTransformer, CrossEncoder, util
from sklearn.neighbors import NearestNeighbors
class SemanticSearch:
def __init__(self):