Skip to content

Commit

Permalink
(bump:patch) update
Browse files Browse the repository at this point in the history
  • Loading branch information
lone17 committed Apr 29, 2024
1 parent 9e2432f commit 1df9845
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# kotaemon

Build and use local RAG-based Question Answering (QA) applications.
An open-source tool for chatting with your documents. Built with both end users and
developers in mind.

https://github.com/Cinnamon/kotaemon/assets/25688648/815ecf68-3a02-4914-a0dd-3f8ec7e75cd9

Expand Down
3 changes: 2 additions & 1 deletion docs/about.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# About Kotaemon

An open-source tool for you to chat with your documents.
An open-source tool for chatting with your documents. Built with both end users and
developers in mind.

[Source Code](https://github.com/Cinnamon/kotaemon) |
[Live Demo](https://huggingface.co/spaces/lone17/kotaemon-app)
Expand Down
4 changes: 2 additions & 2 deletions libs/ktem/ktem/pages/help.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from importlib.metadata import metadata
from importlib.metadata import version
from pathlib import Path

import gradio as gr
Expand Down Expand Up @@ -37,7 +37,7 @@ def __init__(self, app):

self.app_version = None
try:
self.app_version = metadata("kotaemon_app")["version"]
self.app_version = version("kotaemon_app")
except Exception as e:
print(f"Failed to get app version: {e}")

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ packages.find.include = []
enabled = true
dev_template = "{tag}"
dirty_template = "{tag}"
tag_filter = "v?\\d+(\\.\\d+)*.*"

[project]
name = "kotaemon-app"
Expand Down
15 changes: 6 additions & 9 deletions scripts/update_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@ IF "%CONDA_PREFIX%" == "%env_dir%" (
GOTO :eof

:update_latest
pip list | findstr /C:"setuptools-git-versioning" >NUL 2>&1
IF %ERRORLEVEL% NEQ 0 (
CALL pip install setuptools-git-versioning
)
ECHO "Current version "
CALL setuptools-git-versioning
FOR /F "tokens=1,2" %%a in ('pip list') do if "%%a"=="kotaemon-app" set current_version=%%b
ECHO "Current version %current_version%"

IF EXIST "pyproject.toml" (
ECHO Source files detected. Please perform git pull manually.
Expand All @@ -75,9 +71,10 @@ IF EXIST "pyproject.toml" (
)

CALL :print_highlight "Update successfully."
ECHO "Latest version "
CALL setuptools-git-versioning
CALL setuptools-git-versioning > VERSION
FOR /F "tokens=1,2" %%a in ('pip list') do if "%%a"=="kotaemon-app" set updated_version=%%b
ECHO "Current version %updated_version%"
ECHO "Updated version %updated_version%"
ECHO updated_version% > VERSION
GOTO :eof

:print_highlight
Expand Down

0 comments on commit 1df9845

Please sign in to comment.