diky626
January 10, 2023, 11:16am
1
so my requirement is like this
I have 100 paragraphs
I want to put 100 paragraphs to database
when the user asks something, the engine will automatically answer by looking for answers in the 100 paragraphs earlier
example:
I have 100 paragraphs about ‘PHP programming learning materials’
I input all the learning materials
into the database
I asked 'how to replace the string`? then the engine will answer by looking for answers in those 100 paragraphs
so my requirement is engine that without training phrases
, the answers can be automatically searched in those 100 paragraphs
.
is this possible in chatGPT?
Dent
January 10, 2023, 11:31am
2
ChatGPT, not reliably; GPT-3, absolutely. I believe text-embedding-ada-002
is the way to go. @raymonddavey just informed me about its use cases here:
That’s exactly right
Embedding is for semantic search, classifying and clustering
You can feed the result from semantic search back into a completion with a question
You can build a robust classifier (You can do this to some degrees with the completion endpoint too)
You can cluster text into groups to find hidden similarities. You can feed two, three (or more) back into a completion and ask how they are common to find out what you may not see as a human.
2 Likes
Embedding will find you the context you need to answer the question.
Then it will depend on how you phrase the final question you send to GPT. You may have to send the request to a CodeX model if it is PHP. But Davinci might be able to help too
I assume you want it to modify the code for your use-case. In this situation, a prompt to Codex would probably be the best bet
1 Like