-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating doc versions, images and cleaning up section for prompt-guard (
#320) * updating doc versions, images and cleaning up section for prompt-guard * updating based on feedback --------- Co-authored-by: Salman Paracha <[email protected]>
- Loading branch information
Showing
7 changed files
with
41 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,43 @@ | ||
version: v0.1 | ||
|
||
listen: | ||
address: 0.0.0.0 # or 127.0.0.1 | ||
port: 10000 | ||
# Defines how Arch should parse the content from application/json or text/pain Content-type in the http request | ||
listener: | ||
address: 127.0.0.1 | ||
port: 8080 #If you configure port 443, you'll need to update the listener with tls_certificates | ||
message_format: huggingface | ||
|
||
# Centralized way to manage LLMs, manage keys, retry logic, failover and limits in a central way | ||
llm_providers: | ||
- name: OpenAI | ||
provider: openai | ||
access_key: $OPENAI_API_KEY | ||
model: gpt-4o | ||
model: gpt-3.5-turbo | ||
default: true | ||
stream: true | ||
|
||
# default system prompt used by all prompt targets | ||
system_prompt: You are a network assistant that just offers facts; not advice on manufacturers or purchasing decisions. | ||
system_prompt: | | ||
You are a network assistant that helps operators with a better understanding of network traffic flow and perform actions on networking operations. No advice on manufacturers or purchasing decisions. | ||
prompt_targets: | ||
- name: reboot_devices | ||
description: Reboot specific devices or device groups | ||
|
||
path: /agent/device_reboot | ||
parameters: | ||
- name: device_ids | ||
type: list | ||
description: A list of device identifiers (IDs) to reboot. | ||
required: false | ||
- name: device_group | ||
type: str | ||
description: The name of the device group to reboot | ||
required: false | ||
- name: device_summary | ||
description: Retrieve network statistics for specific devices within a time range | ||
endpoint: | ||
name: app_server | ||
path: /agent/device_summary | ||
parameters: | ||
- name: device_ids | ||
type: list | ||
description: A list of device identifiers (IDs) to retrieve statistics for. | ||
required: true # device_ids are required to get device statistics | ||
- name: days | ||
type: int | ||
description: The number of days for which to gather device statistics. | ||
default: "7" | ||
|
||
# Arch creates a round-robin load balancing between different endpoints, managed via the cluster subsystem. | ||
endpoints: | ||
app_server: | ||
# value could be ip address or a hostname with port | ||
# this could also be a list of endpoints for load balancing | ||
# for example endpoint: [ ip1:port, ip2:port ] | ||
endpoint: 127.0.0.1:80 | ||
endpoint: host.docker.internal:18083 | ||
# max time to wait for a connection to be established | ||
connect_timeout: 0.005s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters