Questions tagged [gpt-3]

Use this tag with Generative Pre-trained Transformer 3 (GPT-3). Do not use with GPT-2 or the ad tagging library (GPT).

References:

GPT-3 (Wikipedia)

Related tags:

296 questions
2
votes
0 answers

import Image as PIL_Image ModuleNotFoundError: No module named 'Image' while running langchain with DirectoryLoader('source', glob='*.pdf')

from langchain.document_loaders import UnstructuredPDFLoader, OnlinePDFLoader from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain.document_loaders import DirectoryLoader import openai loader = DirectoryLoader('source',…
2
votes
2 answers

SimpleDirectoryReader cannot be downloaded via llama_index's download_loader

I am using llama_index package to index some of our own documents and query them using GPT. It works fairly well with individual PDFs. However we have a large anout of PDFs which I would like to load in a single run as using its…
Ishan Hettiarachchi
  • 1,426
  • 2
  • 19
  • 31
2
votes
0 answers

How can i migrate from text-davinci-003 model to gpt-3.5-turbo model using OpenAI API?

I tried to change my code to be able to use the new OpenAI model but my application stops working, BEFORE: In Bold are parts of the code that I changed and where working using text-davinci-003 model **var url =…
2
votes
3 answers

OpenAi api 429 rate limit error without reaching rate limit

On occasion I'm getting a rate limit error without being over my rate limit. I'm using the text completions endpoint on the paid api which has a rate limit of 3,000 requests per minute. I am using at most 3-4 requests per minute. Sometimes I will…
Jared
  • 793
  • 6
  • 16
2
votes
0 answers

How does Huggingface's tokenizers tokenize non-English characters?

I use tokenizers to tokenize natural language sentences into tokens. But came up with some questions: Here is some examples I tried using tokenizers: from transformers import GPT2TokenizerFast tokenizer =…
dongrixinyu
  • 172
  • 2
  • 14
2
votes
1 answer

OpenAI GPT-3 API: Does fine-tuning have a token limit?

In the documentation for GPT-3 API, it says: One limitation to keep in mind is that, for most models, a single API request can only process up to 2,048 tokens (roughly 1,500 words) between your prompt and completion. In the documentation for fine…
Salty Gold Fish
  • 431
  • 5
  • 14
2
votes
1 answer

Max prompt token not working when using GPT-3 text-davinci-003

i am integrate GPT-3 text-davinci-003 algorithm with node js all working good but when we have pass token every time different but every time Same gives reply GPT-3 text-davinci-003 so please give me solution. const response = await…
Hussain
  • 106
  • 8
2
votes
2 answers

Fine-tune a davinci model to be similar to InstructGPT

I have a few-shot GPT-3 text-davinci-003 prompt that produces "pretty good" results, but I quickly run out of tokens per request for interesting use cases. I have a data set (n~20) which I'd like to train the model with more but there is no way to…
Incognito
  • 20,537
  • 15
  • 80
  • 120
2
votes
1 answer

OpenAI API error 500: "The server had an error while processing your request", 503: "Service Unavailable" or 504: "Gateway Timeout"

I created a Python script that loops through a list of text strings (each string is about 2000 characters in length) and summarizes each string. See the code for the response below (This prompt is within a for loop): response =…
sotired
  • 61
  • 1
  • 7
2
votes
2 answers

No module named 'openai_secret_manager'

I asked ChatGPT about my CSV data, and ChatGPT answered: "Here is an example of how you can read a CSV file using pandas, and then use the data to train or fine-tune GPT-3 using the OpenAI API:" import pandas as pd import openai_secret_manager #…
mostafa
  • 188
  • 2
  • 10
2
votes
1 answer

OpenAI GPT-3 API: Why am I getting different completions on Playground vs. the API?

I'm trying to use the Ada language processor of OpenAi to summarize a piece of text. When I try to use their playground, the function works and I get a summarization that makes sense and can be used by humans. This is the cURL from the…
2
votes
4 answers

How to keep the format of the OpenAI API response when using the OpenAI GPT-3 API?

When I use GPT3's playground, I often get results that are formatted with numbered lists and paragraphs like below: Here's what the above class is doing: 1. It creates a directory for the log file if it doesn't exist. 2. It checks that the log file…
Tyler Kim
  • 181
  • 1
  • 11
2
votes
0 answers

OpenAI "We could not parse the JSON body of your request."

I'm trying to write a Chrome extension that takes the webpage text and send it to ChatGPT. Here's my JS code: document.addEventListener('DOMContentLoaded', function () { var getBattleCardButton =…
Bob Bob
  • 154
  • 1
  • 11
2
votes
0 answers

OpenAI Python API is giving gibberish responses for the query "hi"

I used Python to access the OpenAI API, then used discord.py to integrate it into a Discord bot. My command looks like this: @bot.command() async def chat(ctx, *, input: str): openai.api_key = os.getenv(envName) async with…
J Muzhen
  • 339
  • 1
  • 10
2
votes
1 answer

Reproducibility when using best_of in GPT-3 settings

I want to do some tests using GPT-3. Instead of setting temperature = 0, I would like to use the best_of function. However, this gives me non-reproducible results since they differ in each iteration of code execution. Does anyone have an idea how I…
Frigoooo
  • 51
  • 4