Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] UX: Observability: minimalistic logging #988

Open
langchain4j opened this issue Apr 19, 2024 · 1 comment
Open

[FEATURE] UX: Observability: minimalistic logging #988

langchain4j opened this issue Apr 19, 2024 · 1 comment
Labels
enhancement New feature or request P2 High priority

Comments

@langchain4j
Copy link
Owner

langchain4j commented Apr 19, 2024

When debugging requests/responses to/from ChatLanguageModel, it is too noisy.
It would be nicer to have an option ot enable minimalistic loggic instead, something that is much easier to parse/debug with eyes:

----------------------------------->
[System]: You are a helpful assistant
[User  ]: Hello
[AI    ]: Hi, how can I help you?
[User  ]: Tell me a joke
----------------------------------->
<-----------------------------------
[AI    ]: Why did the math book look sad? Because it had too many problems.
<-----------------------------------

If the request contains tools, they should be formatted nicely:

----------------------------------->
[System]: You are a helpful assistant
[User  ]: What's the weather in Munich?
--------
[Tools ]: getWeather(location)
----------------------------------->

If there are tool execution request(s) in the response, they should be formatted nicely:

<-----------------------------------
[AI    ]: [Tools]: getWeather("Munich")
<-----------------------------------
@langchain4j langchain4j added enhancement New feature or request P2 High priority labels Apr 19, 2024
@langchain4j
Copy link
Owner Author

Related: #199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 High priority
Projects
None yet
Development

No branches or pull requests

1 participant