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
1
vote
1 answer

OpenAI API: How do I handle errors in Python?

I tried using the below code, but the OpenAI API doesn't have the AuthenticationError method in the library. How can I effectively handle such error. import openai # Set up your OpenAI credentials openai.api_key = 'YOUR_API_KEY' try: # Perform…
1
vote
0 answers

Generic Answer when Fine Tuning OpenAI Model

I have prepared a dataset and trained a davinci model using FineTuning. It gives out the correct answer for any variant of questions that exist in the dataset. But how to fine tune the model to give out something like a "Sorry I do not know the…
3e4r5t
  • 21
  • 3
1
vote
2 answers

gpt chatbot not working after using open ai imports and langchain

hi i am trying to build a chatbot using openai's api. it's basic function is to read a pdf, txtfile , etc. and answer based on it. i was following a tutorial on https://beebom.com/how-train-ai-chatbot-custom-knowledge-base-chatgpt-api/ i used the…
1
vote
1 answer

GPT4 - Unable to get response for a question?

As the title clearly describes the issue I've been experiencing, I'm not able to get a response to a question from the dataset I use using the nomic-ai/gpt4all. The execution simply stops. No exception occurs. How can I overcome this situation? p.s.…
talha06
  • 6,206
  • 21
  • 92
  • 147
1
vote
1 answer

GPU out of memory fine tune flan-ul2

OutOfMemoryError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 15.78 GiB total capacity; 14.99 GiB already allocated; 3.50 MiB free; 14.99 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting…
1
vote
2 answers

OpenAI GPT-3 API error: "Cannot find module '@openai/api'"

I am having trouble using the OpenAI API with Node.js. Specifically, I am trying to use the openai.Completion object, but I keep getting a Cannot find module '@openai/api' error. I have already tried installing the @openai/api package using npm…
1
vote
1 answer

ChatBot - Trouble using custom gpt_index and langchain libraries for creating a GPT-3 based search index

FYI : I am trying to build a chatbot based on the instructions given by Dan Shipper https://www.lennysnewsletter.com/p/i-built-a-lenny-chatbot-using-gpt I'm trying to use custom libraries called gpt_index and langchain to create a GPT-3 based search…
lionkingx
  • 29
  • 4
1
vote
0 answers

Conversational Bot with Flan-T5

I am building a chat bot using flan-T5 model. The bot has a text window where one can give instructions like: Summarize this for me "big text goes here" Or, one might dump the text first in the chat window and then say Summarize the above text…
Darth.Vader
  • 5,079
  • 7
  • 50
  • 90
1
vote
0 answers

word to word gpt api responce stream in react native

Is there a way to implement GPT API with word to word api I already try implement in javascript directly into app but its not working I want to use Chat GPT Turbo api directly in react native (expo) with word by word stream here is working example…
1
vote
0 answers

Give GPT (with own knowledge base) an instruction on how to behave before user prompt

I have given GPT some information in CSV format to learn and now I would like to transmit an instruction on how to behave before the user prompt. def chatbot(input_text): index = GPTSimpleVectorIndex.load_from_disk('index.json') …
Bill Bronson
  • 530
  • 2
  • 9
  • 24
1
vote
1 answer

How to overcome Rate limit error while working with GPT3 Models using Tenacity

In my situation I am trying to pass a prompt using a helper function to the actual GPT3 models, in my case text-ada-001 and then eventually applying it on a pandas column using the following code. but I am recovering the following error: def…
Django0602
  • 797
  • 7
  • 26
1
vote
2 answers

Langchain - Multiple input SequentialChain

I am experiencing with langchain so my question may not be relevant but I have trouble finding an example in the documentation. Actually, as far as I understand, SequentialChain is made to receive one or more inputs for the first chain and then feed…
user21412360
1
vote
1 answer

Why does LLM(LLaMA) loss drop staircase-like over epochs?

I'm training a LLM(LLaMA-6B) and have noticed that its loss seems to drop in a stair-like fashion over the epochs. Specifically, I'll see little loss change for one epoch, and then suddenly the loss will drop quite a bit after a new epoch. I'm…
1
vote
2 answers

How Can I make openAI API respond to requests in specific categories only?

I have created an openAI API using python, to respond to any type of prompt. I want to make the API respond to requests that are only related to Ad from product description and greetings requests only and if the user sends a request that's not…
1
vote
1 answer

Fine-tuning of OpeanAI model with unsupervised set, not supervised

I want GPT-3 model to know everything about my domain area, for example my inbox. I want to be able to ask it questions like "Have I even had a Silicon Valley Bank account?" and get correct response. I've familiarized myself with fine-tuning…
epahomov
  • 631
  • 1
  • 6
  • 7