#New chat api (gpt turbo 3.5)

47 messages · Page 1 of 1 (latest)

weak rune
#

Over the api is there a possibility to add text to a existing conversation like in the web.

queen bobcat
#

You have to use the assistant that's what that is for so you send previous conversation to the assistant so it knows what you have been talking about. To send it with every message and you need to do something to maximize the amount of prompt space you can use so tag prior conversations and only send conversations that are relevant to the question or something like this to increase how much you can remember and work with.

weak rune
#

and how is that a chat if it doesn't work like in the web or liek chatgpt

snow cypress
#

I am wondering that too, chatGPT isn't saving by itself each conversation under some unique ID for some time at least?

#

It's a no brainer to send everything from the conversation with each new question, that gradually increase tokens that are spent

weak rune
calm pecan
#

Im assuming that they will add fine tuning to gpt turbo later

snow cypress
stoic birch
snow cypress
calm pecan
#

Well you can manipulate fine tuning to give chat context. If there's a message that your bot makes that's good, you write a system to add that message to the fine tuning model as a good example and give context to important messages.

#

The ChatGPT in the web browser defiantly have some sort of fine tuned model that can create context no matter the length of the chat

weak rune
weak rune
calm pecan
#

Yes. because the Quizlet, Snapchat, and Instacart examples wouldn't work with the character limit they have. They must have a fine tuned or context

weak rune
calm pecan
#

Yes, and eventually you will hit the token limit

#

I've thought of some work arounds like removing old message from the message list but that sacrifices context. I've thought of a system that i have to manually set chats as important so they don't get erases in the context.

#

Or fine tuning a model that works for my needs.

weak rune
#

but still when trying to make a competitive system it will just be worse than chatgpt

calm pecan
#

I don't intend to reinvent the wheel, rather implement GPT technology into existing programs. and I think that's their goal with GPT Turbo

weak rune
keen wadi
#

Hey all!

#

all these systems like quizlet, snapchat, etc work either with a fixed context memory that sits under the 4000 token limit, or they use embeddings to create memory permanence

calm pecan
#

Thanks @keen wadi

keen wadi
#

No problem! Let me know if you have more questions in here, I've done a lot of work with memory/conversational bots and can help out

calm pecan
#

Epic

weak rune
keen wadi
#

for ChatGPT, not really sure, but they likely call their own API with their own conversation state system

weak rune
sweet dagger
#

But yeah you would want to store conversation context in the prompt and with embeddings you can make long term memory

weak rune
sweet dagger
# weak rune can you explain that with the embedding please i dont quite understand it. Like ...

Yeah embeddings are used to store information in numerical vector stores which captures stuff like semantic meaning of the text. Then you can query those embeddings using semantic search.

If you're using them for long term memory, every time you ask a question it would find the most relevant parts of your chat history (stored in embeddings) and input that information into the prompt, essentially mimicking long term model memory.

weak rune
keen wadi
#

You would have to embed that text source, in chunks of text

#

and then search through those embeddings to find the most relevant bits

weak rune
keen wadi
#

Yes that's correct, but at the loss of lower accuracy since it doesn't have knowledge of the entire text at any given point in time if it's longer than 4096 tokens

weak rune
keen wadi
#

Well, you can do it even if the text is not long

#

embeddings are an effective way to get relevant bits of information to a query