Modifying the answer format (### Human: xxx , ### Assistant: xxx)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.5k
- Forks
- 4.8k
- PR merge metrics
- No merged PRs in 30d
Description
I've been using Vicuna for Question-Answering.
I'm using the py-bindings (llama-cpp-python) and LangChain.
My prompt template is:
template = """Use the following pieces of context to answer the question at the end. Use three sentences maximum.
{context}
Question: {question}
Answer: Think step by step """
I'm initializing the model:
llm = LlamaCpp(
model_path="/<path>/vicuna_13B/ggml-vicuna-13b-4bit.bin",
callback_manager=callback_manager,
verbose=True,
n_threads=6,
n_ctx=2048,
use_mlock=True)
I notice it will answer questions in a rhetorical style with ### Human: and ### Assistant: in the answer:
### Human: xxx?
### Assistant: xxx
Have others seen this and / or should I be using an alternative prompt?
(Note: this question also exists here.)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported prompt template and LlamaCpp initialization, then compare the observed Vicuna output with the expected answer format. The issue provides no repository files or tests; done would require identifying whether the prompt or model configuration causes the extra Human and Assistant markers and documenting a reproducible resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100