Prepare for the presentation, add info
This commit is contained in:
parent
5a4935f0dc
commit
fa6f50a03d
4 changed files with 207 additions and 473 deletions
672
Demo_graph.ipynb
672
Demo_graph.ipynb
File diff suppressed because one or more lines are too long
|
|
@ -1,10 +1,11 @@
|
||||||
|
""" This module contains the code to classify content into categories using the LLM API. """
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
from typing import Type
|
from typing import Type
|
||||||
from cognitive_architecture.infrastructure.llm.get_llm_client import get_llm_client
|
from cognitive_architecture.infrastructure.llm.get_llm_client import get_llm_client
|
||||||
from cognitive_architecture.shared.data_models import ContentPrediction
|
from cognitive_architecture.shared.data_models import ContentPrediction
|
||||||
from utils import read_query_prompt
|
from cognitive_architecture.utils import read_query_prompt
|
||||||
|
|
||||||
async def classify_into_categories(text_input: str,system_prompt_path:str, response_model: Type[BaseModel]):
|
async def classify_into_categories(text_input: str, system_prompt_path:str, response_model: Type[BaseModel]):
|
||||||
llm_client = get_llm_client()
|
llm_client = get_llm_client()
|
||||||
|
|
||||||
system_prompt = await read_query_prompt(system_prompt_path)
|
system_prompt = await read_query_prompt(system_prompt_path)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
""" This module contains the code to classify content into categories using the LLM API. """
|
||||||
from typing import Type
|
from typing import Type
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
from cognitive_architecture.infrastructure.llm.get_llm_client import get_llm_client
|
from cognitive_architecture.infrastructure.llm.get_llm_client import get_llm_client
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
""" Content to Propositions"""
|
""" This module is responsible for converting content to cognitive layers. """
|
||||||
from typing import Type
|
from typing import Type
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
from cognitive_architecture.infrastructure.llm.get_llm_client import get_llm_client
|
from cognitive_architecture.infrastructure.llm.get_llm_client import get_llm_client
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue