Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Conversation

ggordonhall
Copy link
Contributor

Empirically, this prompt reduces the chance that the model hallucinates code and passes it off as belonging to the indexed repo. Also removes the instruction to return the file that the answer was derived from. This is always the path of the first entry in snippets, so we just add this to the response object and remove the redundant index field (which was always 0).

@ggordonhall ggordonhall merged commit 41dad81 into main Jan 25, 2023
@ggordonhall ggordonhall deleted the reduce-hallucination branch January 25, 2023 10:20
@oppiliappan
Copy link
Contributor

i would suggest that the indents be removed, the tend to encourage indents in the response as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants