Skip to content

Commit

Permalink
modified: log_conf.json to INFO Level
Browse files Browse the repository at this point in the history
  • Loading branch information
glorenzo972 committed May 2, 2024
1 parent 64adb4f commit 5343106
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

## [2024-05-02]

### 0.1.11
- fixed: log_conf.json

## [2024-05-02]

### 0.1.10
- fixed: any fields of metadata cannot be None.
- added: TILELLM_ROLE=qa|train in order to manage qa and train
Expand Down
16 changes: 8 additions & 8 deletions log_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@
"level": "DEBUG",
"propagate": false,
"handlers": [
"console",
"file"
"stdout",
"stderr"
]
}
},
"version": 1,
"disable_existing_loggers": false,
"handlers": {
"console": {
"stdout": {
"formatter": "simple",
"class": "logging.StreamHandler",
"stream": "ext://sys.stdout",
"level": "DEBUG"
},
"file": {
"level": "INFO",
"stderr": {
"level": "ERROR",
"formatter": "simple",
"class": "logging.FileHandler",
"filename": "myapp.log"
"class": "logging.StreamHandler",
"stream": "ext://sys.stderr"
}
},
"root": {
"level": "INFO",
"handlers": [
"console"
"stdout","stderr"
]
},
"formatters": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tilellm"
version = "0.1.10"
version = "0.1.11"
description = "tiledesk for RAG"
authors = ["Gianluca Lorenzo <[email protected]>"]
repository = "https://github.com/Tiledesk/tiledesk-llm"
Expand Down
3 changes: 2 additions & 1 deletion tilellm/store/pinecone_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ async def add_pc_item(item):
text_key=const.PINECONE_TEXT_KEY)

total_tokens, cost = calc_embedding_cost(chunks, embedding)
logger.info(len(chunks), total_tokens, cost)
logger.info(f"chunks: {len(chunks)}, total_tokens: {total_tokens}, cost: {cost: .6f}")

# from pprint import pprint
# pprint(documents)
elif type_source == 'urlbs':
Expand Down

0 comments on commit 5343106

Please sign in to comment.