nikolas-rauscher / ARDI-Scholarly-QALD

Advanced Research Data Infrastructure project template
GNU General Public License v3.0
2 stars 0 forks source link

Bug #48

Closed sefeoglu closed 2 weeks ago

sefeoglu commented 2 weeks ago

Hi, Please check api is False or not after the 2nd presentation. It is not working only for local zero-shot prompting. It should be :

                if api:
                    if api_type == 'llama':
                        response = zero_shot_prompting_llama(llama_api, example, context_type, prompt_template)
                    elif api_type == 'groq':
                        response = zero_shot_prompting_groq(groq_client, example, context_type, prompt_template, model_id)
                else:
                    response = zero_shot_prompting_local(model, tokenizer, example, context_type, prompt_template)

https://github.com/nikolas-rauscher/ARDI-Scholarly-QALD/blob/ed64b7195ed755b09b3f4c7410014a8f18013020/src/models/zero_shot_prompting_pipeline.py#L270-L275