[LangChain] MonaiGPT - Medical Imaging Chatbot을 만들어볼까? -2
코드리뷰 db_creator.py from langchain.document_loaders import DirectoryLoader from langchain.embeddings import OpenAIEmbeddings from langchain.vectorstores import Chroma import os from api import api_key os.environ['OPENAI_API_KEY'] = api_key loader = DirectoryLoader('./data') pages = loader.load_and_split() embeddings = OpenAIEmbeddings() vectordb = Chroma.from_documents(pages, embe..
- Data science/Deep Learning Toy Project
- · 2023. 9. 11.
반응형
LIST