# Incomplete response from chatbot

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fincomplete-response-from-chatbot%2F48033%3E%5C
**Category:** Models\
**Created:** [July 25, 2023, 8:00am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fincomplete-response-from-chatbot%2F48033 "2023-07-25T08:00:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HadeelA](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@HadeelA](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FHadeelA)%5C
**Post date:** [July 25, 2023, 8:00am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fincomplete-response-from-chatbot%2F48033%2F1 "2023-07-25T08:00:33Z")

</div>

I created a chatbot using langchain llamacpp with llama-2-13b-chat, and it keeps giving me incomplete responses as such: “Sure! Here’s an example that uses the case operator to assign different field values in different situations. Suppose you have”

The following are the parameters used:

```
            llm = LlamaCpp(
                model_path="models/llama-2-13b-chat.ggmlv3.q2_K.bin",
                n_gpu_layers=40,
                n_batch=512,
                max_tokens=2000,
                streaming=True,
                callback_manager=callback_manager,
                verbose=False,
                temperature=0.75,
                top_p=0.9,
                top_k=40,
                repeat_penalty=1.18,
                f16_kv=True,
                last_n_tokens_size=64,
            )

```

I tried experimenting with different models and different parameters, yet I was still receiving incomplete responses.
