2 days agoMember-onlyGet Answers From Your PDF — Azure OpenAI and LangchainIn this article, I’ll walk you through all the steps required to query your PDFs and get response out of it using Azure OpenAI. Let’s get started by importing the required packages. Import Required Packages Here are the packages which we need to import to get started: from dotenv import load_dotenv from langchain.document_loaders import…OpenAI2 min readOpenAI2 min read
May 25Member-onlyIntegrating Azure Cognitive Search With Azure OpenAI and LangchainIn this article, I’ll guide you through all the steps which are required to utilize Azure search(non-semantic) with OpenAI and Langchain. Before getting started, here are the few prerequisites which need to be satisfied. Prerequisites An Azure account with an active subscription. …OpenAI3 min readOpenAI3 min read
May 5Member-onlyCreate Chatbot Based On The Data Feed By You — GPT Index/LlamaIndex| OpenAIThis article is the revised version of my previous article published here. Reason for this revision is, GPT Index is renamed to LlamaIndex. Here problem is not only renaming, lot many classes are removed, function parameters are changed and much more. So, let’s get started. In this article, I’ll show…OpenAI3 min readOpenAI3 min read
Apr 24Member-onlyHow To Query Many Files At Once Using OpenAIIn this article, I’ll explain you an end-to-end use case which utilizes OpenAI. We will see how we can answer the questions from multiple documents. User will provide the directory path and system will go through all the files to answer the questions. Let’s get started. Import Required Packages Below are the list…OpenAI3 min readOpenAI3 min read
Apr 16Member-onlyAnswer your questions based on local embeddingIn this article, I’ll walk you through high level steps which are required to query your comma separated value a.k.a. CSV file and get response out of it. Let’s get started by importing the required packages. Import Required Packages import pandas as pd import tiktoken import openai import os import numpy as np Get OpenAI API Key …OpenAI4 min readOpenAI4 min read
Apr 5Query Your PDF And Get Answers — OpenAI | Langchain | PythonIn this article, I’ll walk you through all the steps required to query your PDFs and get response out of it. Let’s get started by importing the required packages. Import Required Packages import langchain import os import openai from langchain.embeddings import OpenAIEmbeddings from langchain.vectorstores import Chroma from langchain import OpenAI, VectorDBQA from langchain.document_loaders import UnstructuredFileLoader from langchain.text_splitter import CharacterTextSplitter import nltk nltk.download("punkt") os.environ["OPENAI_API_KEY"]…2 min read2 min read
Mar 22Member-onlyGive Permanent Memory To OpenAI EmbeddingsIn this article, I’ll show you how you can use your locally stored text files to get response using GPT-3. You can ask questions and get response like ChatGPT. This article is in continuation to the one, I’ve already written. …OpenAI4 min readOpenAI4 min read
Mar 21Member-onlyUse ChatGPT Inside Google DocsIn this article, I’ll explain how can you integrate ChatGPT inside Google docs and utilize the capabilities of any text based OpenAI model of your choice. If you are not aware what Google docs is — it is an offering by Google, where in you can create and collaborate documents…OpenAI3 min readOpenAI3 min read
Mar 13Member-onlyHow To Use ChatGPT Inside ExcelIn this article, I will show you, how can you integrate ChatGPT with Microsoft Excel. Let’s get started by getting an OpenAI API key. Getting OpenAI API Key To get the OpenAI key, you need to go to https://openai.com/, login and then grab the keys using highlighted way: Adding Script In Excel Let’s open Excel, go to Automate…ChatGPT3 min readChatGPT3 min read
Mar 9Member-onlyHow To Deal With OpenAI Token Limit Issue - Part 1If you are using OpenAI APIs, then I’m sure you must have stumbled upon this error: InvalidRequestError: This model’s maximum context length is 4097 tokens, however you requested 13886 tokens (13630 in your prompt; 256 for the completion). Please reduce your prompt; or completion length. This error occurs when your…OpenAI5 min readOpenAI5 min read