Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Outpht
Outpht
Inactive
0
Follow
t
thoraxe
last year
Β·
is there a convenient way to override the output formatting?
https://github.com/run-llama/llama_index/blob/v0.8.38/llama_index/callbacks/simple_llm_handler.py
Since I'm going to be post-processing stuff in python and then doing later things, I'd like to change the
** Prompt **
and
** Completion **
stuff
L
t
12 comments
Share
Open in Discord
L
Logan M
last year
Not at the moment. Would be easy enough to add though
t
thoraxe
last year
is there an inconvenient way to do it? π
L
Logan M
last year
Haha only by editing source code in the installed package
t
thoraxe
last year
cuz right now I have to like split on the
** Completion **
string
t
thoraxe
last year
not the end of the world
L
Logan M
last year
I made that feature with the impression that it was for visual purposes only π
L
Logan M
last year
The code is here though, FYI
https://github.com/run-llama/llama_index/blob/main/llama_index/callbacks/simple_llm_handler.py
t
thoraxe
last year
well maybe i'm thinking about this wrong
t
thoraxe
last year
ah, yes, ok
t
thoraxe
last year
the problem was
llama_index.set_global_handler("simple")
t
thoraxe
last year
print(response)
does as expected (only the response)
L
Logan M
last year
Ah perfect
Add a reply
Sign up and join the conversation on Discord
Join on Discord