Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

📝 Add class docstring

Christopher Teeaad1ba908cc7
diff --git a/dsp/modules/you.py b/dsp/modules/you.py
index b3a1346dc..12d4fd35f 100644
--- a/dsp/modules/you.py
+++ b/dsp/modules/you.py
@@ -10,6 +10,30 @@ RESEARCH_ENDPOINT = "https://chat-api.you.com/research"
class You(LM):
+ """Wrapper around You.com's conversational Smart and Research APIs.
+
+ Each API endpoint is designed to generate conversational
+ responses to a variety of query types, including inline citations
+ and web results when relevant.
+
+ Smart Mode:
+ - Quick, reliable answers for a variety of questions
+ - Cites the entire web page URL
+
+ Research Mode:
+ - In-depth answers with extensive citations for a variety of questions
+ - Cites the specific web page snippet relevant to the claim
+
+ To connect to the You.com api requires an API key which
+ you can get at https://api.you.com.
+
+ For more information, check out the documentations at
+ https://documentation.you.com/api-reference/.
+
+ Args:
+ mode: You.com conversational endpoints. Choose from "smart" or "research"
+ api_key: You.com API key, if `YDC_API_KEY` is not set in the environment
+ """
def __init__(
self,