Update summary assistant template and remove Pipfile and Pipfile.lock

This commit is contained in:
Stan Girard 2024-04-17 13:57:20 +02:00
parent 8921eb9adf
commit ccecff77a5
4 changed files with 4 additions and 52 deletions

View File

@ -90,7 +90,7 @@ class SummaryAssistant(ITO):
map_template = """The following is one document to summarize that has been split into multiple sections:
{docs}
Based on the section, please identify the main themes, key points, and important information in each section.
Helpful Knowledge:"""
Helpful Knowledge in language of the document:"""
map_prompt = PromptTemplate.from_template(map_template)
map_chain = LLMChain(llm=llm, prompt=map_prompt)
@ -101,6 +101,7 @@ class SummaryAssistant(ITO):
Use markdown such as bold, italics, underlined. For example, **bold**, *italics*, and _underlined_ to highlight key points.
Please provide the final summary with sections using bold headers.
Sections should be: a short summary of the document called summary, and a list of key points called key points.
Keep the same language as the documents.
Summary:"""
reduce_prompt = PromptTemplate.from_template(reduce_template)

View File

@ -1,12 +0,0 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
unidecode = "*"
[dev-packages]
[requires]
python_version = "3.12"

View File

@ -1,30 +0,0 @@
{
"_meta": {
"hash": {
"sha256": "009ab56fe44fa6c21e83e3adcfc3b590c4bbc990e293803aeef637768706049d"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.12"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
"unidecode": {
"hashes": [
"sha256:cfdb349d46ed3873ece4586b96aa75258726e2fa8ec21d6f00a591d98806c2f4",
"sha256:d130a61ce6696f8148a3bd8fe779c99adeb4b870584eeb9526584e9aa091fd39"
],
"index": "pypi",
"markers": "python_version >= '3.5'",
"version": "==1.3.8"
}
},
"develop": {}
}

View File

@ -9,6 +9,8 @@ services:
build:
context: backend
dockerfile: Dockerfile.dev
cache_from:
- backend-base
args:
- DEV_MODE=true
container_name: backend-core
@ -44,9 +46,6 @@ services:
image: backend-base
env_file:
- .env
build:
context: backend
dockerfile: Dockerfile.dev
container_name: worker
# volumes:
# - ./backend/:/code/
@ -60,9 +59,6 @@ services:
pull_policy: never
env_file:
- .env
build:
context: backend
dockerfile: Dockerfile.dev
container_name: beat
command: celery -A celery_worker beat -l info
@ -75,9 +71,6 @@ services:
pull_policy: never
env_file:
- .env
build:
context: backend
dockerfile: Dockerfile.dev
container_name: flower
command: celery -A celery_worker flower -l info --port=5555