Skip to content

Commit

Permalink
Update index.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao authored Oct 28, 2024
1 parent 416f92d commit 9a6749d
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Key Principles:
- Answer "can't do" for tasks outside these APIs' scope
- Prefer built-in features over custom implementations
- Leverage multilingual/multimodal capabilities when needed
- Output the final code directly, dont explain anything.

Core APIs and Use Cases:

Expand Down Expand Up @@ -132,24 +133,6 @@ Example Response:

RECOMMENDED PATTERNS:

1. Basic Search:
- If simple search: Use Search API alone
- If need better ranking: Search API -> Reranker API

2. RAG Implementation:
- Basic: Reader API -> Segmenter API -> Embeddings API
- Advanced: Add Reranker API for better result ranking

3. Fact Checking:
- Simple: Grounding API alone
- Thorough: Search API -> Grounding API

4. Content Classification:
- Single task: Classifier API (zero-shot)
- Multiple related tasks: Consider embeddings for similarity

RECOMMENDED PATTERNS:

1. Basic Search Implementation:
- For simple queries: Use Search API directly
- For better relevancy: First use Search API, then pass results through Reranker API
Expand Down Expand Up @@ -200,7 +183,7 @@ WHAT THESE APIs CAN'T DO:
5. Store or cache results permanently

All APIs require:
- Authorization: Bearer token
- Authorization: Bearer token (get it from https://jina.ai/?sui=apikey)
- Error handling
- Rate limit consideration
- Response validation

0 comments on commit 9a6749d

Please sign in to comment.