Skip to content

Commit

Permalink
Updated for 300x langchian series (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead authored Oct 31, 2023
1 parent 9036a1a commit 5c35342
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions paperqa/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
from pathlib import Path
from typing import BinaryIO, Dict, List, Optional, Set, Union, cast

from langchain.base_language import BaseLanguageModel
from langchain.chat_models import ChatOpenAI
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.memory import ConversationTokenBufferMemory
from langchain.memory.chat_memory import BaseChatMemory
from langchain.schema.embeddings import Embeddings
from langchain.vectorstores import FAISS, VectorStore
from langchain.schema.language_model import BaseLanguageModel
from langchain.schema.vectorstore import VectorStore
from langchain.vectorstores import FAISS

try:
from pydantic.v1 import BaseModel, validator
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
install_requires=[
"pypdf",
"pydantic<2",
"langchain>=0.0.198",
"langchain>=0.0.303",
"openai >= 0.27.8",
"faiss-cpu",
"PyCryptodome",
Expand Down

0 comments on commit 5c35342

Please sign in to comment.