Skip to content

Commit 84f2703

Browse files
committed
Emphasize absolute path requirement in documentation
1 parent b6852da commit 84f2703

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/perplexity_advanced_mcp/search_tool.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def process_attachments(attachment_paths: list[str]) -> str:
9191
@mcp.tool(
9292
name="ask_perplexity",
9393
description=(
94-
"""Perplexity is fundamentally an LLM that can search the internet, gather information, and answer users queries.
94+
"""Perplexity is fundamentally an LLM that can search the internet, gather information, and answer users' queries.
9595
9696
For example, let's suppose we want to find out the latest version of Python.
9797
1. You would search on Google.
@@ -101,7 +101,7 @@ def process_attachments(attachment_paths: list[str]) -> str:
101101
102102
To answer a user's query, Perplexity searches, opens the top search results, finds information on those websites, and then provides the answer.
103103
104-
Perplexity can be used with two types of queries: simple and complex. Choosing the right query type to fulfill the users request is most important.
104+
Perplexity can be used with two types of queries: simple and complex. Choosing the right query type to fulfill the user's request is most important.
105105
106106
SIMPLE Query:
107107
- Cheap and fast (on average, 10x cheaper and 3x faster than complex queries).
@@ -114,10 +114,11 @@ def process_attachments(attachment_paths: list[str]) -> str:
114114
- Pricing: $1/M input tokens, $5/M output tokens.
115115
116116
Instructions:
117-
- When reviewing the users request, if you find anything unexpected, uncertain, or questionable, do not hesitate to use the "ask_perplexity" tool to consult Perplexity.
117+
- When reviewing the user's request, if you find anything unexpected, uncertain, or questionable, do not hesitate to use the "ask_perplexity" tool to consult Perplexity.
118118
- Since Perplexity is also an LLM, prompt engineering techniques are paramount.
119119
- Remember the basics of prompt engineering, such as providing clear instructions, sufficient context, and examples.
120-
- Include as much context and relevant files as possible to smoothly fulfill the user’s request.
120+
- Include as much context and relevant files as possible to smoothly fulfill the user's request.
121+
- IMPORTANT: When adding files as attachments, you MUST use absolute paths (e.g., '/absolute/path/to/file.py'). Relative paths will not work.
121122
122123
Note: All queries must be in English for optimal results.
123124
"""
@@ -163,7 +164,7 @@ async def ask_perplexity(
163164
f"""
164165
<system>
165166
Think or reason about the user's words in as much detail as possible. Summarize everything thoroughly.
166-
List all the elements that need to be considered regarding the users question or prompt.
167+
List all the elements that need to be considered regarding the user's question or prompt.
167168
168169
<idea-reflection>
169170
Form your opinions about these elements from an objective standpoint, avoiding an overly pessimistic or overly optimistic view. Opinions should be specific and realistic.

0 commit comments

Comments
 (0)