Search This Blog
All things code. Software development of any kind (mobile, desktop, web). Cloud computing and infrastructure as code. Database design, optimization and best practices. Devops and sysops.
Featured
- Get link
- X
- Other Apps
Document information extraction using LangChain and OpenAI
Unless you've been living under a rock you must have heard about the wonders of Artificial Intelligence. Perhaps you've heard about it with different names: DALL-E, for image generation; ChatGPT, for… well, chatting with the closest thing to a human mind we have at the moment. They are both powered by Open AI, the company spearheading research in the Machine Learning and Artificial Intelligence fields. If you're a coder you have all that power at your disposal. Let us show you how to harness it using Python, the default language for these type of applications.
Set up your account in openai.com, if you haven't already. Once you have it,
Just give me the code already
Fine. Let's get coding. First thing we're gonna do is set up our virtual environment to isolate our project and handle our own dependencies and tools.
python -m venv venv
Now activate your virtual environment.
source ./venv/bin/activate
Create a file to list the dependencies and use pip to download them.
touch requirements.txt
cat <<EOT >> a.txt
langchainopenaipypdfEOTpip install -r requirements.txt
- Get link
- X
- Other Apps
Popular Posts
Using NGINX as a Reverse Proxy for Oracle APEX and ORDS
- Get link
- X
- Other Apps
Loading large CSV files using Oracle External Tables
- Get link
- X
- Other Apps
Comments
Post a Comment