nyan icon indicating copy to clipboard operation
nyan copied to clipboard

8 hours summary using GPT not present

Open b0tm1nd opened this issue 1 year ago • 7 comments

After setting up, everything is working except 8 hours summary. I see files summary.py, openai.py, topics.py are present but don't seem to be included anywhere. Maybe some bash scripts missing? Also I've read that for openai you need to put your keys into .env which might also need to be mentioned in the setup instruction.

b0tm1nd avatar Aug 20 '23 22:08 b0tm1nd

It is not a part of core functions.

I have this command in cron, with three different launch times:

python3 -m nyan.topics --mongo-config-path configs/mongo_config.json --client-config-path configs/client_config.json --renderer-config-path configs/renderer_config.json --prompt-path nyan/prompts/topics.txt --model-name gpt-4 --duration-hours 8 --auto --template-path nyan/templates/topics.html

And OPENAI_API_KEY in env variables.

NyanNyanovich avatar Aug 21 '23 11:08 NyanNyanovich

Thanks. What else functions might need to be configured with cron? Probably, archiving? In the whitepaper it says that there is a summary around 9pm every day, I guess that relates to summary.py but you're not currently using it in your channel?

b0tm1nd avatar Aug 21 '23 11:08 b0tm1nd

Nothing. Archiving is manual using this script. Nope, it was about ratings.py, but having both topics and ratings seems too much for me.

NyanNyanovich avatar Aug 21 '23 22:08 NyanNyanovich

How often do you run archive?

b0tm1nd avatar Aug 22 '23 20:08 b0tm1nd

Rarely. You can find all runs here: https://github.com/NyanNyanovich/nyan/releases

NyanNyanovich avatar Aug 22 '23 22:08 NyanNyanovich

Добрый день! Интересный проект, последнее время думал сделать для себя агрегатор, чтобы посмотреть основные новости один раз за день и не чекать постоянно каналы.

Есть вопрос: А почему бы не запустить какую-нибудь доступную модель локально, чтобы делать выжимку?

sellerbto avatar Jan 12 '24 19:01 sellerbto

Нет таких моделей, по крайней мере сравнимых с gpt-4. Я сохраняю все выжимки, когда-нибудь на них можно будет дообучить модель. Для preview версии это выходит примерно в 50 сентов в день всё равно.

NyanNyanovich avatar Jan 13 '24 23:01 NyanNyanovich