Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

[BUG] Semstrings not used for by_llm function call arguments #388

Open
Jayanaka-98 opened this issue May 20, 2024 · 1 comment
Open

[BUG] Semstrings not used for by_llm function call arguments #388

Jayanaka-98 opened this issue May 20, 2024 · 1 comment
Assignees

Comments

@Jayanaka-98
Copy link
Collaborator

Jayanaka-98 commented May 20, 2024

Describe the bug
When using a previously defined variable (with semstrings) with by llm as a function call argument, the semstring of the variable is not being used for the generated prompt. Instead any semstring defined for the argument will be used.

To Reproduce

import:py from jaclang.core.llms, Anthropic;
glob llm = Anthropic(model_name="claude-3-sonnet-20240229");

glob pet_name: 'name of a pet dog' : str = 'Jim';

can 'What species it belongs to'
find( pet_name: 'name of a pet' : str) -> species by llm();

with entry {
    print(find(pet_name));
} 

image

Jaclang/Python Version
Python = 3.12.2
Jaclang = 0.5.18

@marsninja
Copy link
Contributor

This is interesting, I think really both semstrings should be used with the llm and the aott prompt gen should somehow frame it in the context properly. This needs discussion for sure.

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

No branches or pull requests

4 participants