![](https://private-user-images.githubusercontent.com/141204/353597278-b30e2c38-dc19-49a5-973d-51e1dafe5c4d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3NDYyNjEsIm5iZiI6MTczOTc0NTk2MSwicGF0aCI6Ii8xNDEyMDQvMzUzNTk3Mjc4LWIzMGUyYzM4LWRjMTktNDlhNS05NzNkLTUxZTFkYWZlNWM0ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQyMjQ2MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hM2IwZTdhYjFjMzlkNTI2ZDhiNjVjYjRiMjUwNDE4ZTRkMDg3MjcxMTA3Y2IyOGFjMGM1N2E3MDhkYzJkMWEzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.TIrBpXwy7tRQ04NyKxCfDuQKTc7dSFQVEBvzyobE9Fw)
Use the CLI to upload, manage, and query documents based on fine-tuned LLM models. It uses the smartloop API to manage projects and documents and gives you an easy way to quickly process contents and reason based on it.
- Python 3.11
Install the CLI with the following command:
pip install -U smartloop
Once installed, check that everything is setup correctly:
smartloop --help
Usage: smartloop [OPTIONS] COMMAND [ARGS]...
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ agent Manage agent(s) │
│ login Authenticate using a token from https://api.smartloop.ai/v1/redoc │
│ run Starts a chat session with a selected agent │
│ upload Upload document for the selected agent │
│ version Version of the cli │
│ whoami Find out which account you are logged in │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
First you will need to create a free account, verify and configure your account.
Once verified, copy your developer token to the clipboard. If you have any problem setting up your account please reach out to us at hello@smartloop.ai
and we should be able to get you started.
Once you have your token, run the following command in your terminal:
smartloop login
Once you have configured the CLI , you can start creating agent using the following command:
smartloop agent create --name microsoft
Use the following command to interactively select an agent:
smartloop agent select
Once the agent is selected , upload documents from your folder or a specific file to personalized your agent, in this case I am uploading the a document describing Microsoft online services form my local machine:
smartloop upload --path=~/document1.pdf
Execute the following command to start prompting:
smartloop run
This will bring up the interface to prompt your queries as shown below:
Microsoft(microsoft-24-07-2024)
======================================
Enter prompt (Ctrl-C to exit):
what the SLA for azure open ai
⠋
The SLA (Service Level Agreement) for Azure OpenAI is not explicitly mentioned in the provided text. However, it's possible that the SLA for Azure OpenAI might be similar to the one mentioned below:
"Uptime Percentage"
* Service Credit:
+ < 99.9%: 10%
+ < 99%: 25%
+ < 95%: 100%
Please note that this is not a direct quote from the provided text, but rather an inference based on the format and structure of the SLA mentioned for other Azure services (e.g., SAP HANA on Azure High Availability Pair). To confirm the actual SLA for Azure OpenAI, you should check the official Microsoft documentation or contact their support team.
Prompt message (Ctrl-C to exit):
In order to set temperature
of your conversation, which ranges from 0.0 to 1.0, use the following command:
smartloop agent set --id=project_id --temp=0.3
To enable memory to retain context in the conversation, use the following command:
smartloop agent set --id=project_id --memory
To disable memory, use the following command:
smartloop agent set --id=project_id --no-memory
LLM temperature is a parameter that influences the language model's output, determining whether the output is more random and creative or more predictable.
The higher value tends towards more creative answer
- DOCX
- TXT
- CSV
Contributions are welcome! Please create a pull request with your changes.
If you have any questions or suggestions, please feel free to reach out to hello@smartloop.ai
This project is licensed under the terms of the MIT license.