Verwendung langer Kontextfenster - Amazon Nova

Verwendung langer Kontextfenster

Amazon Nova Premier unterstützt eine Kontextlänge von 1 Million Token, was 1 Million Text-Token, 500 Bildern oder 90 Minuten Video entspricht. Amazon Nova Premier zeichnet sich durch sein Verständnis von Code und die Beantwortung von Fragen zu großen Dokumenten aus. Die Leistung kann mit zunehmender Kontextgröße leicht abnehmen. Um optimale Ergebnisse zu erzielen, beachten Sie bitte die folgenden Richtlinien:

  • Platzieren Sie umfangreiche Daten an den Anfang: Positionieren Sie Ihre umfangreichen Dokumente und Eingaben möglichst am Anfang Ihres Prompts. Sie sollten vor Ihrer Anfrage, Ihren Anweisungen und Beispielen stehen.

  • Anweisungen an das Ende platzieren: Platzieren Sie Ihre Anweisungen an das Ende des Prompts. Das Modell erzielt die besten Ergebnisse, wenn zunächst der Kontext und anschließend die Anweisungen bereitgestellt werden.

  • Strukturieren Sie den Inhalt von Dokumenten mit Start- und Endemarkierungen: Verwenden Sie Start- und Endemarkierungen wie [Document Start] und [Document End], um den Anfang und das Ende eines längeren Dokuments zu kennzeichnen.

    Hier ist ein Beispiel für eine Vorlage:

    // Provide your long inputs at the top of your prompt [Document Start] {{ Your document}} [Document End] // Then specify your query and instructions {{ User query}} {{ Instructions}}
  • Antworten mit Zitatmarkierungen untermauern: Bei Aufgaben mit umfangreichen Dokumenten empfehlen wir, das Amazon-Nova-Modell anzuweisen, seine Antworten mit Zitaten aus den relevanten Abschnitten der Dokumente zu untermauern, bevor es mit der Aufgabe fortfährt. Dieser Ansatz unterstützt das Modell dabei, sich auf die relevantesten Informationen zu konzentrieren und Ablenkungen durch irrelevante Inhalte zu vermeiden. Wenn Sie das Modell bitten, seine Antwort zu begründen, sollten die Abschnitte, die zitiert werden können, nummeriert sein. Zum Beispiel Passage %[1]%, Passage %[2]% usw. oder einfach <C1>, <C2>, und so weiter. Ausführliche Informationen darüber, wie Sie Zitate in Prompts einfügen können, finden Sie unter Ihr eigenes RAG erstellen.

    Hier ist ein Beispiel-Prompt:

    """ You are an AI financial assistant. Your task is to find patterns and insights from multi-year financial documents Passage %[1]% {{ Your document}} Passage %[2]% {{ Your document}} Passage %[3]% {{ Your document}} Passage %[4]% {{ Your document}} ## Task: Analyze Amazon's financial reports across multiple years to identify significant performance trends, segment growth patterns, and strategic shifts. ## Context information: - You have access to Amazon's annual financial reports (10-K) for multiple fiscal years in PDF format - These reports contain comprehensive financial data including income statements, balance sheets, cash flow statements, and management discussions - The analysis should focus on year-over-year comparisons to identify meaningful trends - Amazon operates multiple business segments including North America retail, International retail, Amazon Web Services (AWS), advertising, and subscription services Based on the provided Context, extract key financial metrics from each year's reports phrases from the documents, citing them using %[1]%, %[2]%, %[3]%, and for the corresponding passage that supports the response. ## Response Schema: %[1]% (Extracted Financial Metrics) %[2]% (Extracted Financial Metrics) %[3]% (Extracted Financial Metrics) ... """

    Nachdem Sie die wichtigsten Informationen auf der Grundlage der Aufgabe des Benutzers extrahiert haben, können Sie die extrahierten Finanzmetriken verwenden, um die relevanten Fragen wie folgt zu beantworten:

    """ ## Task Analyze Amazon's financial reports across multiple years to identify significant performance trends, segment growth patterns, and strategic shifts. {{ extracted financial metrics }} ## Model Instructions: - Organize data chronologically to identify meaningful trends - DO compare segment performance across the five-year period - DO identify significant strategic shifts or investments mentioned in management discussions - DO NOT make speculative predictions beyond what is supported by the data - ALWAYS note any changes in accounting practices or reporting methodologies that might affect year-over-year comparisons ## Response style and format requirements: - Respond in markdown - Structure the analysis with clear headings and subheadings - Present key financial metrics in tabular format showing all five years side-by-side - Include percentage changes year-over-year for all major metrics - Create a section dedicated to visualizing the most significant trends (with descriptions of what would be shown in charts) - Limit the executive summary to 250 words maximum - Format segment analysis as separate sections with consistent metrics across all segments - MUST include a Key Insights bullet-pointed list at the end of each major section