Skip to content

Commit 336ff64

Browse files
committed
Update phrasing
1 parent 32bf09d commit 336ff64

File tree

12 files changed

+18
-15
lines changed

12 files changed

+18
-15
lines changed

.well-known/ai-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name_for_model": "retrieval",
44
"name_for_human": "Retrieval Plugin",
55
"description_for_model": "Plugin for searching through the user's documents (such as files, emails, and more) to find answers to questions and retrieve relevant information. Use it whenever a user asks something that might be found in their personal information.",
6-
"description_for_human": "Search through your documents",
6+
"description_for_human": "Search through your documents.",
77
"auth": {
88
"type": "user_http",
99
"authorization_type": "bearer"

.well-known/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ paths:
99
/query:
1010
post:
1111
summary: Query
12-
description: This endpoint accepts an array of search query objects, each containing a natural language query string ("query") and an optional metadata filter ("filter"). Filters can help refine search results based on criteria such as document source or time period, but are not necessary in most cases. You can send multiple queries to compare information from different sources or break down complex questions into sub-questions. If you receive a ResponseTooLargeError, try splitting up the queries into multiple calls to this endpoint.
12+
description: Accepts search query objects array each with query and optional filter. Break down complex questions into sub-questions. Refine results by criteria, e.g. time / source, don't do this often. Split queries if ResponseTooLargeError occurs.
1313
operationId: query_query_post
1414
requestBody:
1515
content:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ BEARER_TOKEN=your_bearer_token \
587587

588588
Alternatively, you could set environment variables in the [Fly.io Console](https://fly.io/dashboard).
589589

590-
At this point, you can change the plugin url in your plugin manifest file [here](/.well-known/ai-plugin.json), and in your OpenAPI schema [here](/.well-known/openapi.yaml) to the url for your Fly.io app, which will be https://<your-app-name>.fly.dev.
590+
At this point, you can change the plugin url in your plugin manifest file [here](/.well-known/ai-plugin.json), and in your OpenAPI schema [here](/.well-known/openapi.yaml) to the url for your Fly.io app, which will be `https://your-app-name.fly.dev`.
591591

592592
Deploy your app with:
593593

@@ -710,7 +710,7 @@ To view your app logs:
710710
heroku logs --tail -a [app-name]
711711
```
712712

713-
Now make sure to change the plugin url in your plugin manifest file [here](/.well-known/ai-plugin.json), and in your OpenAPI schema [here](/.well-known/openapi.yaml), and redeploy with `make heroku-push`. This url will be `https://<your-app-name>.herokuapp.com`.
713+
Now make sure to change the plugin url in your plugin manifest file [here](/.well-known/ai-plugin.json), and in your OpenAPI schema [here](/.well-known/openapi.yaml), and redeploy with `make heroku-push`. This url will be `https://your-app-name.herokuapp.com`.
714714

715715
### Other Deployment Options
716716

examples/authentication-methods/no-auth/ai-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name_for_model": "retrieval",
44
"name_for_human": "Retrieval Plugin",
55
"description_for_model": "Plugin for searching through the user's documents (such as files, emails, and more) to find answers to questions and retrieve relevant information. Use it whenever a user asks something that might be found in their personal information.",
6-
"description_for_human": "Plugin to search through your personal documents.",
6+
"description_for_human": "Search through your documents.",
77
"auth": {
88
"type": "none"
99
},

examples/authentication-methods/no-auth/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def query_main(
8484
@sub_app.post(
8585
"/query",
8686
response_model=QueryResponse,
87-
description='Accepts an array of search query objects, each with a natural language query string ("query") and an optional metadata filter ("filter"). Filters are not necessary in most cases, but can sometimes help refine search results based on criteria such as document source or time period. Send multiple queries to compare information from different sources or break down complex questions into sub-questions. If you receive a ResponseTooLargeError, try splitting up the queries into multiple calls to this endpoint.',
87+
description="Accepts search query objects with query and optional filter. Break down complex questions into sub-questions. Refine results by criteria, e.g. time / source, don't do this often. Split queries if ResponseTooLargeError occurs.",
8888
)
8989
async def query(
9090
request: QueryRequest = Body(...),

examples/authentication-methods/oauth/ai-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name_for_model": "retrieval",
44
"name_for_human": "Retrieval Plugin",
55
"description_for_model": "Plugin for searching through the user's documents (such as files, emails, and more) to find answers to questions and retrieve relevant information. Use it whenever a user asks something that might be found in their personal information.",
6-
"description_for_human": "Plugin to search through your personal documents.",
6+
"description_for_human": "Search through your documents.",
77
"auth" : {
88
"type":"oauth",
99
"client_url":"e.g. https://<your domain>/oauth/v2/authorize",

examples/authentication-methods/service-http/ai-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name_for_model": "retrieval",
44
"name_for_human": "Retrieval Plugin",
55
"description_for_model": "Plugin for searching through the user's documents (such as files, emails, and more) to find answers to questions and retrieve relevant information. Use it whenever a user asks something that might be found in their personal information.",
6-
"description_for_human": "Plugin to search through your personal documents.",
6+
"description_for_human": "Search through your documents.",
77
"auth":{
88
"type":"service_http",
99
"authorization_type":"bearer",

examples/authentication-methods/user-http/ai-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name_for_model": "retrieval",
44
"name_for_human": "Retrieval Plugin",
55
"description_for_model": "Plugin for searching through the user's documents (such as files, emails, and more) to find answers to questions and retrieve relevant information. Use it whenever a user asks something that might be found in their personal information.",
6-
"description_for_human": "Plugin to search through your personal documents.",
6+
"description_for_human": "Search through your documents.",
77
"auth": {
88
"type": "user_http",
99
"authorization_type": "bearer"

examples/memory/ai-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name_for_model": "retrieval",
44
"name_for_human": "Retrieval Plugin",
55
"description_for_model": "Plugin for searching through the user's documents (such as files, emails, and more) to find answers to questions and retrieve relevant information. Use it whenever a user asks something that might be found in their personal information, or asks you to save information for later.",
6-
"description_for_human": "Search through your documents",
6+
"description_for_human": "Search through your documents.",
77
"auth": {
88
"type": "user_http",
99
"authorization_type": "bearer"

examples/memory/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ async def upsert_main(
8080
@sub_app.post(
8181
"/upsert",
8282
response_model=UpsertResponse,
83-
description="Save information from chat conversations as documents, only if the user asks you to. Accepts an array of documents, each document has a text field with the conversation text and possible questions that could lead to the answer, and metadata including the source (chat) and created_at timestamp. Confirm with the user before saving information, and ask if they want to add details / context.",
83+
# NOTE: We are describing the the shape of the API endpoint input due to a current limitation in parsing arrays of objects from OpenAPI schemas. This will not be necessary in future.
84+
description="Save chat information. Accepts an array of documents with text (potential questions + conversation text), metadata (source 'chat' and timestamp). Confirm with the user before saving, ask for more details/context.",
8485
)
8586
async def upsert(
8687
request: UpsertRequest = Body(...),
@@ -115,7 +116,8 @@ async def query_main(
115116
@sub_app.post(
116117
"/query",
117118
response_model=QueryResponse,
118-
description='Accepts an array of search query objects, each with a natural language query string ("query") and an optional metadata filter ("filter"). Filters are not necessary in most cases, but can sometimes help refine search results based on criteria such as document source or time period. Send multiple queries to compare information from different sources or break down complex questions into sub-questions. If you receive a ResponseTooLargeError, try splitting up the queries into multiple calls to this endpoint.',
119+
# NOTE: We are describing the the shape of the API endpoint input due to a current limitation in parsing arrays of objects from OpenAPI schemas. This will not be necessary in future.
120+
description="Accepts search query objects array each with query and optional filter. Break down complex questions into sub-questions. Refine results by criteria, e.g. time / source, don't do this often. Split queries if ResponseTooLargeError occurs.",
119121
)
120122
async def query(
121123
request: QueryRequest = Body(...),

0 commit comments

Comments
 (0)