gabykim commited on
Commit
eb592fa
·
1 Parent(s): 7893c76

query result pretty format

Browse files
src/know_lang_bot/chat_bot/chat_graph.py CHANGED
@@ -9,7 +9,7 @@ from know_lang_bot.config import AppConfig
9
  from know_lang_bot.utils.fancy_log import FancyLogger
10
  from pydantic_ai import Agent
11
  import logfire
12
- from rich.pretty import Pretty
13
  from enum import Enum
14
  from rich.console import Console
15
  from know_lang_bot.utils.model_provider import create_pydantic_model
@@ -162,7 +162,7 @@ class RetrieveContextNode(BaseNode[ChatGraphState, ChatGraphDeps, ChatResult]):
162
  n_results=ctx.deps.config.chat.max_context_chunks,
163
  include=['metadatas', 'documents', 'distances']
164
  )
165
- logfire.debug('query result: {result}', result=Pretty(results))
166
 
167
  relevant_chunks = []
168
  relevant_metadatas = []
 
9
  from know_lang_bot.utils.fancy_log import FancyLogger
10
  from pydantic_ai import Agent
11
  import logfire
12
+ from pprint import pformat
13
  from enum import Enum
14
  from rich.console import Console
15
  from know_lang_bot.utils.model_provider import create_pydantic_model
 
162
  n_results=ctx.deps.config.chat.max_context_chunks,
163
  include=['metadatas', 'documents', 'distances']
164
  )
165
+ logfire.debug('query result: {result}', result=pformat(results))
166
 
167
  relevant_chunks = []
168
  relevant_metadatas = []