-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add jinja to Poetry environment. * Working base version of HTML Jinja template. * Template fromatting. Save to file. * Use Jinja for logging output. Prepare for other (Markdown) output file. * Remove use of mdutils package (replaced by Jinja). * .html output file is OK. * Ad markdown template (output file). * Version bump * Remove mdutils from pyproject.toml and poetry.lock. * version (patch) bump
- Loading branch information
1 parent
e4b6985
commit 375de86
Showing
9 changed files
with
197 additions
and
66 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>LLM Chat Session with quke</title> | ||
|
||
</head> | ||
<body> | ||
<h1>LLM Chat Session with quke</h1> | ||
<div>{{ chat_time }}</div> | ||
<h1>Experiment Settings</h1> | ||
<pre> | ||
<code>{{ config }}</code> | ||
</pre> | ||
<h1>Chat</h1> | ||
{% for result in llm_results %} | ||
<div>Q: <strong>{{ result.question }}</strong></div> | ||
<div>A: {{ result.answer }}</div> | ||
<br> | ||
<div>Source: </div> | ||
<div> | ||
{% for key, value in dict_crosstab(result.source_documents).items() %} | ||
{{ key }}, pages: {{ value }} | ||
{% endfor %} | ||
</div> | ||
<div><br></div> | ||
{% endfor %} | ||
</body> | ||
|
||
{# 1) timestamp 2) conf summary 3) chat: [question, answer, source (optional)] #} | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
======================= | ||
{{ config }} | ||
{% for result in llm_results %} | ||
Q: {{ result.question }} | ||
A: {{ result.answer }} | ||
Source: {% for key, value in dict_crosstab(result.source_documents).items() %} | ||
document: {{ key }}, page: {{ value }} {% endfor %} | ||
{% endfor %}======================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# LLM Chat Session with quke | ||
<center>{{ chat_time }}</center> | ||
|
||
## Experiment settings | ||
|
||
```yaml | ||
{{ config }} | ||
``` | ||
|
||
## Chat | ||
|
||
{% for result in llm_results %} | ||
Q: {{ result.question }} | ||
|
||
A: {{ result.answer }} | ||
|
||
Source: {% for key, value in dict_crosstab(result.source_documents).items() %} | ||
{{ key }}, pages: {{ value }} | ||
{% endfor %} | ||
------- | ||
|
||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters