The bot is highly customizable π€, allowing you to adjust the prompt according to your needs, resulting in more personalized responses βοΈ. You can also configure various settings βοΈ, such as the model and the temperature, depending on the context or the type of output you want to generate here.
By default, the following parameters are set:
- Model: gemini-1.5-flash-001 π§
- Temperature: 1 π‘οΈ
- Top P: 0.95 π―
- Top K: 40 π
- Max Output Tokens: 8192 π
- Response Mime Type: application/json π
You can modify these parameters to suit your specific needs, such as increasing the temperature for more creative responses π¨ or lowering it for more deterministic outputs β . Similarly, Top P, Top K, and Top N can be adjusted to control how broad or narrow the selection of possible next tokens should be during generation.
Warning
Changing the response mime type might change the way gemini formats its response and its response parser.
Note
Currently, it is not possible to set custom parameters for the crawler π§.
The crawler operates with a fixed configuration designed to efficiently retrieve and process data π, but future updates may include options for more granular control βοΈ, such as setting intervals β²οΈ or data extraction rules π.
In terms of user interaction, the bot can be set up to interact either with individual users π€ or with users within groups π₯. This allows for flexible engagement depending on your needs.
For example, if you set ADMIN_USER_ID=123
where 123
is the user's ID, the bot will be able to interact with this specific user through a private chat π¬. If you wish to allow multiple users to interact with the bot in separate private chats, you can simply add their IDs, like so: ADMIN_USER_ID=123;456
. This way, each user will have the ability to privately communicate with the bot π₯π¬.
Only admin users can add the GemDigest bot to group chats. Once added, GemDigest will interact with everyone in the groupβno admin status needed for standard interactions! However, only admins can issue direct commands to control the bot's features. If a non-admin attempts to:
- Create a private chat with the bot β GemDigest will simply ignore the message π€·
- Add the bot to another group β it will politely leave the chat π
Note
To get a userβs ID, follow this guide π: whoami_bot
With this flexible setup, you can fine-tune how the bot communicates π, whether for one-on-one interactions or group-wide discussions π¨οΈπ‘.
You can use the following predefined commands to get information about the bot's functionalities:
- /help: Returns a list of available commands π
- /tokens: Returns the number of tokens used π’
- /info: Returns information such as the current temperature and the model being used π
- /blacklist: Returns the list of website for which the summary is not needed (e.g. youtube) β
Examples of the following commands are provided in the table below:
To add a website to the blacklist you can edit website_blacklist.txt
and add the website you want to blacklist. For example www.youtube.com and www.x.com are already in! Then close the file and restart the bot or the container.