Skip to content

Commit

Permalink
Adds correct imports from langchain_core for LCEL Retriever
Browse files Browse the repository at this point in the history
  • Loading branch information
vmesel committed May 11, 2024
1 parent 995c92c commit 7e1b776
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dialog_lib/embeddings/retrievers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from dialog_lib.db.models import CompanyContent
from sqlalchemy.orm import DeclarativeBase, Session

from langchain.schema.retriever import BaseRetriever, Document
from langchain_core.retrievers import BaseRetriever
from langchain_core.documents import Document
from dialog_lib.embeddings.generate import get_most_relevant_contents_from_message

class DialogRetriever(BaseRetriever):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dialog-lib"
version = "0.0.1.16"
version = "0.0.1.17"
description = ""
authors = ["Talkd.AI <foss@talkd.ai>"]
license = "MIT"
Expand Down

0 comments on commit 7e1b776

Please sign in to comment.