File size: 478 Bytes
6739f59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from src.callbacks.retailgpt.graph import create_parser, create_llm_chain, get_context

def test_prompt():
    context = get_context()
    parser = create_parser()
    llm_context_chain = create_llm_chain(parser=parser)
    output = llm_context_chain(context)
    assert output is not None


def test_chain():
    params = {
        "temperature": 0,
        "model_name": "text-davinci-003",
        "max_tokens": 1000,
    }
    llm_context_chain = create_llm_chain(**params)