Prepare for the presentation, add info

This commit is contained in:
Vasilije 2024-03-07 16:58:04 +01:00
parent 5a4935f0dc
commit fa6f50a03d
4 changed files with 207 additions and 473 deletions

File diff suppressed because one or more lines are too long

View file

@ -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)

View file

@ -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

View file

@ -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