Sfoglia il codice sorgente

Feat: add full list of supported AWS Bedrock regions (#9378)

### What problem does this PR solve?

Add full list of supported AWS Bedrock regions.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
tags/v0.20.2
Yongteng Lei 2 mesi fa
parent
commit
83939b1a63
Nessun account collegato all'indirizzo email del committer

+ 31
- 3
web/src/locales/en.ts Vedi File

@@ -252,7 +252,7 @@ export default {
book: `<p>Supported file formats are <b>DOCX</b>, <b>PDF</b>, <b>TXT</b>.</p><p>
For each book in PDF, please set the <i>page ranges</i> to remove unwanted information and reduce analysis time.</p>`,
laws: `<p>Supported file formats are <b>DOCX</b>, <b>PDF</b>, <b>TXT</b>.</p><p>
Legal documents typically follow a rigorous writing format. We use text feature to identify split point.
Legal documents typically follow a rigorous writing format. We use text feature to identify split point.
</p><p>
The chunk has a granularity consistent with 'ARTICLE', ensuring all upper level text is included in the chunk.
</p>`,
@@ -266,7 +266,7 @@ export default {
<li>Then, combine adjacent segments until the token count exceeds the threshold specified by 'Chunk token number for text', at which point a chunk is created.</li></p>`,
paper: `<p>Only <b>PDF</b> file is supported.</p><p>
Papers will be split by section, such as <i>abstract, 1.1, 1.2</i>. </p><p>
This approach enables the LLM to summarize the paper more effectively and to provide more comprehensive, understandable responses.
This approach enables the LLM to summarize the paper more effectively and to provide more comprehensive, understandable responses.
However, it also increases the context for AI conversations and adds to the computational cost for the LLM. So during a conversation, consider reducing the value of ‘<b>topN</b>’.</p>`,
presentation: `<p>Supported file formats are <b>PDF</b>, <b>PPTX</b>.</p><p>
Every page in the slides is treated as a chunk, with its thumbnail image stored.</p><p>
@@ -670,13 +670,41 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s
bedrockSKMessage: 'Please input your SECRET KEY',
bedrockRegion: 'AWS Region',
bedrockRegionMessage: 'Please select!',
'us-east-2': 'US East (Ohio)',
'us-east-1': 'US East (N. Virginia)',
'us-west-1': 'US West (N. California)',
'us-west-2': 'US West (Oregon)',
'af-south-1': 'Africa (Cape Town)',
'ap-east-1': 'Asia Pacific (Hong Kong)',
'ap-south-2': 'Asia Pacific (Hyderabad)',
'ap-southeast-3': 'Asia Pacific (Jakarta)',
'ap-southeast-5': 'Asia Pacific (Malaysia)',
'ap-southeast-4': 'Asia Pacific (Melbourne)',
'ap-south-1': 'Asia Pacific (Mumbai)',
'ap-northeast-3': 'Asia Pacific (Osaka)',
'ap-northeast-2': 'Asia Pacific (Seoul)',
'ap-southeast-1': 'Asia Pacific (Singapore)',
'ap-southeast-2': 'Asia Pacific (Sydney)',
'ap-east-2': 'Asia Pacific (Taipei)',
'ap-southeast-7': 'Asia Pacific (Thailand)',
'ap-northeast-1': 'Asia Pacific (Tokyo)',
'ca-central-1': 'Canada (Central)',
'ca-west-1': 'Canada West (Calgary)',
'eu-central-1': 'Europe (Frankfurt)',
'eu-west-1': 'Europe (Ireland)',
'eu-west-2': 'Europe (London)',
'eu-south-1': 'Europe (Milan)',
'eu-west-3': 'Europe (Paris)',
'eu-south-2': 'Europe (Spain)',
'eu-north-1': 'Europe (Stockholm)',
'eu-central-2': 'Europe (Zurich)',
'il-central-1': 'Israel (Tel Aviv)',
'mx-central-1': 'Mexico (Central)',
'me-south-1': 'Middle East (Bahrain)',
'me-central-1': 'Middle East (UAE)',
'sa-east-1': 'South America (São Paulo)',
'us-gov-east-1': 'AWS GovCloud (US-East)',
'us-gov-west-1': 'AWS GovCloud (US-West)',
'ap-southeast-2': 'Asia Pacific (Sydney)',
addHunyuanSID: 'Hunyuan Secret ID',
HunyuanSIDMessage: 'Please input your Secret ID',
addHunyuanSK: 'Hunyuan Secret Key',

+ 36
- 8
web/src/locales/id.ts Vedi File

@@ -203,7 +203,7 @@ export default {
Karena buku panjang dan tidak semua bagian berguna, jika itu adalah PDF,
silakan atur <i>rentang halaman</i> untuk setiap buku untuk menghilangkan efek negatif dan menghemat waktu komputasi untuk analisis.</p>`,
laws: `<p>Format file yang didukung adalah <b>DOCX</b>, <b>PDF</b>, <b>TXT</b>.</p><p>
Dokumen hukum memiliki format penulisan yang sangat ketat. Kami menggunakan fitur teks untuk mendeteksi titik pemisah.
Dokumen hukum memiliki format penulisan yang sangat ketat. Kami menggunakan fitur teks untuk mendeteksi titik pemisah.
</p><p>
Granularitas potongan konsisten dengan 'ARTIKEL', dan semua teks tingkat atas akan disertakan dalam potongan.
</p>`,
@@ -218,9 +218,9 @@ export default {
<li>Selanjutnya, potongan berturut-turut ini digabungkan menjadi potongan yang jumlah tokennya tidak lebih dari 'Jumlah token'.</li></p>`,
paper: `<p>Hanya file <b>PDF</b> yang didukung.</p><p>
Jika model kami bekerja dengan baik, makalah akan dipotong berdasarkan bagiannya, seperti <i>abstrak, 1.1, 1.2</i>, dll. </p><p>
Manfaat dari melakukan ini adalah LLM dapat lebih baik merangkum konten bagian yang relevan dalam makalah,
menghasilkan jawaban yang lebih komprehensif yang membantu pembaca lebih memahami makalah.
Kelemahannya adalah meningkatkan konteks percakapan LLM dan menambah biaya komputasi,
Manfaat dari melakukan ini adalah LLM dapat lebih baik merangkum konten bagian yang relevan dalam makalah,
menghasilkan jawaban yang lebih komprehensif yang membantu pembaca lebih memahami makalah.
Kelemahannya adalah meningkatkan konteks percakapan LLM dan menambah biaya komputasi,
jadi selama percakapan, Anda dapat mempertimbangkan untuk mengurangi pengaturan ‘<b>topN</b>’.</p>`,
presentation: `<p>Format file yang didukung adalah <b>PDF</b>, <b>PPTX</b>.</p><p>
Setiap halaman akan diperlakukan sebagai potongan. Dan thumbnail setiap halaman akan disimpan.</p><p>
@@ -249,7 +249,7 @@ export default {
</p><p>
Resume datang dalam berbagai format, seperti kepribadian seseorang, tetapi kita sering harus mengaturnya menjadi data terstruktur yang memudahkan pencarian.
</p><p>
Alih-alih memotong resume, kami memparsing resume menjadi data terstruktur. Sebagai HR, Anda dapat membuang semua resume yang Anda miliki,
Alih-alih memotong resume, kami memparsing resume menjadi data terstruktur. Sebagai HR, Anda dapat membuang semua resume yang Anda miliki,
maka Anda dapat mencantumkan semua kandidat yang memenuhi kualifikasi hanya dengan berbicara dengan <i>'assistxsuite'</i>.
</p>
`,
@@ -283,11 +283,11 @@ export default {
Jika Anda ingin merangkum sesuatu yang membutuhkan semua konteks dari sebuah artikel dan panjang konteks LLM yang dipilih mencakup panjang dokumen, Anda dapat mencoba metode ini.
</p>`,
knowledgeGraph: `<p>Format file yang didukung adalah <b>DOCX, EXCEL, PPT, IMAGE, PDF, TXT, MD, JSON, EML</b>
<p>Setelah file dipotong, digunakan potongan untuk mengekstrak grafik pengetahuan dan peta pikiran dari seluruh dokumen. Metode ini menerapkan cara naif untuk memotong file:
Teks berturut-turut akan dipotong menjadi potongan masing-masing yang berjumlah sekitar 512 token.</p>
<p>Selanjutnya, potongan akan dikirim ke LLM untuk mengekstrak node dan hubungan dari grafik pengetahuan, dan peta pikiran.</p>
Perhatikan jenis entitas yang perlu Anda tentukan.</p>`,
useRaptor: 'Gunakan RAPTOR untuk meningkatkan pengambilan',
useRaptorTip:
@@ -558,13 +558,41 @@ export default {
bedrockSKMessage: 'Silakan masukkan SECRET KEY Anda',
bedrockRegion: 'Wilayah AWS',
bedrockRegionMessage: 'Silakan pilih!',
'us-east-2': 'US East (Ohio)',
'us-east-1': 'US East (N. Virginia)',
'us-west-1': 'US West (N. California)',
'us-west-2': 'US West (Oregon)',
'af-south-1': 'Africa (Cape Town)',
'ap-east-1': 'Asia Pacific (Hong Kong)',
'ap-south-2': 'Asia Pacific (Hyderabad)',
'ap-southeast-3': 'Asia Pacific (Jakarta)',
'ap-southeast-5': 'Asia Pacific (Malaysia)',
'ap-southeast-4': 'Asia Pacific (Melbourne)',
'ap-south-1': 'Asia Pacific (Mumbai)',
'ap-northeast-3': 'Asia Pacific (Osaka)',
'ap-northeast-2': 'Asia Pacific (Seoul)',
'ap-southeast-1': 'Asia Pacific (Singapore)',
'ap-southeast-2': 'Asia Pacific (Sydney)',
'ap-east-2': 'Asia Pacific (Taipei)',
'ap-southeast-7': 'Asia Pacific (Thailand)',
'ap-northeast-1': 'Asia Pacific (Tokyo)',
'ca-central-1': 'Canada (Central)',
'ca-west-1': 'Canada West (Calgary)',
'eu-central-1': 'Europe (Frankfurt)',
'eu-west-1': 'Europe (Ireland)',
'eu-west-2': 'Europe (London)',
'eu-south-1': 'Europe (Milan)',
'eu-west-3': 'Europe (Paris)',
'eu-south-2': 'Europe (Spain)',
'eu-north-1': 'Europe (Stockholm)',
'eu-central-2': 'Europe (Zurich)',
'il-central-1': 'Israel (Tel Aviv)',
'mx-central-1': 'Mexico (Central)',
'me-south-1': 'Middle East (Bahrain)',
'me-central-1': 'Middle East (UAE)',
'sa-east-1': 'South America (São Paulo)',
'us-gov-east-1': 'AWS GovCloud (US-East)',
'us-gov-west-1': 'AWS GovCloud (US-West)',
'ap-southeast-2': 'Asia Pacific (Sydney)',
addHunyuanSID: 'Hunyuan Secret ID',
HunyuanSIDMessage: 'Silakan masukkan Secret ID Anda',
addHunyuanSK: 'Hunyuan Secret Key',

+ 32
- 4
web/src/locales/vi.ts Vedi File

@@ -220,7 +220,7 @@ export default {
book: `<p>Các định dạng tệp được hỗ trợ là <b>DOCX</b>, <b>PDF</b>, <b>TXT</b>.</p><p>
Đối với mỗi sách trong PDF, vui lòng đặt <i>phạm vi trang</i> để loại bỏ thông tin không mong muốn và giảm thời gian phân tích.</p>`,
laws: `<p>Các định dạng tệp được hỗ trợ là <b>DOCX</b>, <b>PDF</b>, <b>TXT</b>.</p><p>
Các tài liệu pháp lý thường tuân theo định dạng viết nghiêm ngặt. Chúng tôi sử dụng tính năng văn bản để xác định điểm phân chia.
Các tài liệu pháp lý thường tuân theo định dạng viết nghiêm ngặt. Chúng tôi sử dụng tính năng văn bản để xác định điểm phân chia.
</p><p>
Khối có độ chi tiết nhất quán với 'ARTICLE', đảm bảo tất cả văn bản cấp trên được bao gồm trong khối.
</p>`,
@@ -234,7 +234,7 @@ export default {
<p>Các định dạng tệp được hỗ trợ là <b>MD, MDX, DOCX, XLSX, XLS (Excel 97-2003), PPT, PDF, TXT, JPEG, JPG, PNG, TIF, GIF, CSV, JSON, EML, HTML</b>.</p>`,
paper: `<p>Chỉ hỗ trợ tệp <b>PDF</b>.</p><p>
Bài báo sẽ được chia theo các phần, chẳng hạn như <i>tóm tắt, 1.1, 1.2</i>. </p><p>
Cách tiếp cận này cho phép LLM tóm tắt bài báo hiệu quả hơn và cung cấp các phản hồi toàn diện, dễ hiểu hơn.
Cách tiếp cận này cho phép LLM tóm tắt bài báo hiệu quả hơn và cung cấp các phản hồi toàn diện, dễ hiểu hơn.
Tuy nhiên, nó cũng làm tăng ngữ cảnh cho các cuộc hội thoại AI và tăng thêm chi phí tính toán cho LLM. Vì vậy, trong quá trình trò chuyện, hãy cân nhắc giảm giá trị của '<b>topN</b>'.</p>`,
presentation: `<p>Các định dạng tệp được hỗ trợ là <b>PDF</b>, <b>PPTX</b>.</p><p>
Mỗi trang trong slide được coi là một khối, với hình thu nhỏ của nó được lưu trữ.</p><p>
@@ -290,7 +290,7 @@ export default {
Áp dụng khi bạn yêu cầu LLM tóm tắt toàn bộ tài liệu, với điều kiện nó có thể xử lý được lượng ngữ cảnh đó.
</p>`,
knowledgeGraph: `<p>Các định dạng tệp được hỗ trợ là <b>DOCX, EXCEL, PPT, IMAGE, PDF, TXT, MD, JSON, EML</b>
<p>Cách tiếp cận này phân đoạn tệp bằng phương pháp 'ngây thơ'/'Tổng hợp'. Nó chia tài liệu thành các phân đoạn và sau đó kết hợp các phân đoạn liền kề cho đến khi số lượng token vượt quá ngưỡng được chỉ định bởi 'Số token khối', tại thời điểm đó, một khối được tạo.</p>
<p>Các khối sau đó được đưa vào LLM để trích xuất các thực thể và mối quan hệ cho biểu đồ tri thức và sơ đồ tư duy.</p>
<p>Đảm bảo bạn đã đặt <b>Loại thực thể</b>.</p>`,
@@ -603,13 +603,41 @@ export default {
bedrockSKMessage: 'Vui lòng nhập KHÓA BÍ MẬT của bạn',
bedrockRegion: 'Vùng AWS',
bedrockRegionMessage: 'Vui lòng chọn!',
'us-east-2': 'US East (Ohio)',
'us-east-1': 'US East (N. Virginia)',
'us-west-1': 'US West (N. California)',
'us-west-2': 'US West (Oregon)',
'af-south-1': 'Africa (Cape Town)',
'ap-east-1': 'Asia Pacific (Hong Kong)',
'ap-south-2': 'Asia Pacific (Hyderabad)',
'ap-southeast-3': 'Asia Pacific (Jakarta)',
'ap-southeast-5': 'Asia Pacific (Malaysia)',
'ap-southeast-4': 'Asia Pacific (Melbourne)',
'ap-south-1': 'Asia Pacific (Mumbai)',
'ap-northeast-3': 'Asia Pacific (Osaka)',
'ap-northeast-2': 'Asia Pacific (Seoul)',
'ap-southeast-1': 'Asia Pacific (Singapore)',
'ap-southeast-2': 'Asia Pacific (Sydney)',
'ap-east-2': 'Asia Pacific (Taipei)',
'ap-southeast-7': 'Asia Pacific (Thailand)',
'ap-northeast-1': 'Asia Pacific (Tokyo)',
'ca-central-1': 'Canada (Central)',
'ca-west-1': 'Canada West (Calgary)',
'eu-central-1': 'Europe (Frankfurt)',
'eu-west-1': 'Europe (Ireland)',
'eu-west-2': 'Europe (London)',
'eu-south-1': 'Europe (Milan)',
'eu-west-3': 'Europe (Paris)',
'eu-south-2': 'Europe (Spain)',
'eu-north-1': 'Europe (Stockholm)',
'eu-central-2': 'Europe (Zurich)',
'il-central-1': 'Israel (Tel Aviv)',
'mx-central-1': 'Mexico (Central)',
'me-south-1': 'Middle East (Bahrain)',
'me-central-1': 'Middle East (UAE)',
'sa-east-1': 'South America (São Paulo)',
'us-gov-east-1': 'AWS GovCloud (US-East)',
'us-gov-west-1': 'AWS GovCloud (US-West)',
'ap-southeast-2': 'Asia Pacific (Sydney)',
addHunyuanSID: 'Hunyuan Secret ID',
HunyuanSIDMessage: 'Vui lòng nhập ID bí mật của bạn',
addHunyuanSK: 'Hunyuan Secret Key',

+ 29
- 1
web/src/pages/user-setting/setting-model/constant.ts Vedi File

@@ -1,9 +1,37 @@
export const BedrockRegionList = [
'us-east-2',
'us-east-1',
'us-west-1',
'us-west-2',
'af-south-1',
'ap-east-1',
'ap-south-2',
'ap-southeast-3',
'ap-southeast-5',
'ap-southeast-4',
'ap-south-1',
'ap-northeast-3',
'ap-northeast-2',
'ap-southeast-1',
'ap-southeast-2',
'ap-east-2',
'ap-southeast-7',
'ap-northeast-1',
'ca-central-1',
'ca-west-1',
'eu-central-1',
'eu-west-1',
'eu-west-2',
'eu-south-1',
'eu-west-3',
'eu-south-2',
'eu-north-1',
'eu-central-2',
'il-central-1',
'mx-central-1',
'me-south-1',
'me-central-1',
'sa-east-1',
'us-gov-east-1',
'us-gov-west-1',
'ap-southeast-2',
];

Loading…
Annulla
Salva