Using langchain library with basics in js. (splitting pdf files, creating chunks, converting vectors, using conversational chain in memory)
npm install
- Create
.env
document inside root of project (or change name of.env.sample
to.env
) - Add your OpenAI API Key into
.env
(asOPENAI_API_KEY=<your api key>
)
npm run start
Question: what is the document about?
You can add your pdf files to /documents
folder inside of root of folder. bitcoin.pdf
is already included.