Java QnA example returning complete document?

Hi,

I am using the Java QnA example from Weaviate website, but it returns the complete document ingested instead of a nice formatted answer. With “trace” level logging I see a call going to OpenAI completions end point. However, I cannot see the request/response being made to see what actually is going on.

Any ideas on what might be wrong here?

Thanks.

Hi @sangupta !

I have never used the Java Client myself… but usually the generated answer lives in the first object, like in here

Maybe Isn’t that the case?