Views
No views yet

| Property | Value / Guidance |
|---|---|
| Base model | mixedbread-ai/mxbai-embed-large-v1 (encoder-style transformer) |
| Architecture | Transformer encoder (Sentence-Transformers compatible) |
| Embedding dimension | Query programmatically at runtime; common builds use 1024 |
| Tokenization | Provided by upstream model tokenizer |
| Max input length | Depends on upstream config; chunk long docs (e.g., 256–512 tokens) |
| Pooling | Mean pooling (recommended), then optional L2 normalization |
| Output | Dense float vectors (often normalized if using cosine similarity) |
| Intended backends | FAISS, Milvus, pgvector, Qdrant, Chroma, Weaviate |
Represent this sentence for searching relevant passages: for query if you want to use it for retrieval. Besides that you don't need any prompt.| File Name | Description |
|---|---|
| Balanced Budget and Emergency Deficit Control Act of 1985 | Establishes statutory limits on federal spending and deficit control mechanisms, including sequestration procedures. |
| Budget Control Act of 2011 | Sets discretionary spending caps and establishes enforcement mechanisms to control federal deficits. |
| Digital Accountability And Transparency Act of 2014 | Requires standardized federal spending data and improved transparency through government-wide financial reporting. |
| Federal Account Symbols And Titles Book | Defines Treasury account symbols and official titles used for federal budgetary and accounting purposes. |
| Federal Acquisition Regulation | Establishes uniform policies and procedures governing the acquisition of goods and services by federal agencies. |
| Federal Government Standards For Internal Controls | Defines the internal control framework for federal agencies to ensure accountability, integrity, and compliance. |
| Federal Managers Financial Integrity Act of 1982 | Requires agencies to establish internal controls and report annually on their effectiveness. |
| Federal Trust Fund Accounting Guide | Provides accounting guidance for the management and reporting of federal trust funds. |
| Financial Management Regulations DOD 7000-14-R | Establishes DoD-specific financial management policies, procedures, and accounting requirements. |
| Fiscal Responsibility Act | Establishes statutory measures intended to improve fiscal discipline and control federal spending. |
| Government Auditing Standards | Sets professional standards for audits of government organizations, programs, activities, and functions. |
| Government Invoicing User Guide | Provides guidance on federal invoicing standards and processes for government transactions. |
| Government Performance and Results Act of 1993 | Requires agencies to engage in strategic planning and performance measurement to improve program effectiveness. |
| GPRA Modernization Act of 2010 | Updates GPRA by strengthening performance management, cross-agency goals, and accountability. |
| OMB Circular A-11 Preparation Submission And Execution Of The Budget | Provides comprehensive guidance for preparing, submitting, and executing the President’s Budget. |
| OMB Circular A-11 Section 120 Apportionment Process | Defines the apportionment process used to control the rate of obligation of budgetary resources. |
| OMB Circular A-123 Managements Responsibility for Enterprise Risk Management and Internal Control | Defines management responsibilities for internal control and enterprise risk management across federal agencies. |
| Federal Trust Fund Accounting Guide | Establishes requirements for federal agency financial statements and reporting. |
| Principles Of Federal Appropriations Law Volume One | Authoritative GAO guidance on foundational principles governing the use of federal appropriations. |
| Statements of Federal Federal Financial Accounting Concepts and Standards | Establishes accounting concepts and standards for federal financial reporting. |
| The Anti-Deficiency Act PL 97-258 | Prohibits federal agencies from obligating or expending funds in excess of appropriations or before enactment. |
| The Anti-Deficiency Reform and Enforcement Act of 2018 | Strengthens Anti-Deficiency Act enforcement and reporting requirements to improve fiscal accountability. |
| The Chief Financial Officers Act of 1990 | Establishes agency Chief Financial Officers and modernizes federal financial management practices. |
| The Congressional Budget and Impoundment Control Act of 1974 | Establishes the congressional budget process and restricts executive impoundment of appropriated funds. |
| Statutory Pay As You Go Act of 2010 | Authorizes interagency agreements for the provision of goods and services on a reimbursable basis. |
| The Stafford Act | Provides the statutory framework for federal disaster response and emergency assistance. |
| Federal Trust Fund Accounting Guide | Provides additional appropriations authority beyond regular annual funding acts. |
| Title 2 Code of Federal Regulations – Uniform Administrative Requirements, Cost Principles, and Audit | Establishes uniform administrative, cost, and audit requirements for federal financial assistance. |
| Title 31 Code of Federal Regulations – Money and Finance | Codifies Treasury and federal financial management regulations governing money and finance. |
| US Standard General Ledger Account Definitions | Defines standardized account structures used for federal accounting and financial reporting. |
python -m pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2from sentence_transformers.util import cos_sim
3from sentence_transformers.quantization import quantize_embeddings
4
5# 1. Specify preffered dimensions
6dimensions = 512
7
8# 2. load model
9model = SentenceTransformer("bobo/mxbai-embed-large-v1", truncate_dim=dimensions)
10
11# The prompt used for query retrieval tasks:
12# query_prompt = 'Represent this sentence for searching relevant passages: '
13
14query = "A man is eating a piece of bread"
15docs = [
16 "A man is eating food.",
17 "A man is eating pasta.",
18 "The girl is carrying a baby.",
19 "A man is riding a horse.",
20]
21
22# 2. Encode
23query_embedding = model.encode(query, prompt_name="query")
24# Equivalent Alternatives:
25# query_embedding = model.encode(query_prompt + query)
26# query_embedding = model.encode(query, prompt=query_prompt)
27
28docs_embeddings = model.encode(docs)
29
30# Optional: Quantize the embeddings
31binary_query_embedding = quantize_embeddings(query_embedding, precision="ubinary")
32binary_docs_embeddings = quantize_embeddings(docs_embeddings, precision="ubinary")
33
34similarities = cos_sim(query_embedding, docs_embeddings)
35print('similarities:', similarities)1from typing import Dict
2
3import torch
4import numpy as np
5from transformers import AutoModel, AutoTokenizer
6from sentence_transformers.util import cos_sim
7
8# For retrieval you need to pass this prompt. Please find our more in our blog post.
9def transform_query(query: str) -> str:
10 """ For retrieval, add the prompt for query (not for documents).
11 """
12 return f'Represent this sentence for searching relevant passages: {query}'
13
14# The model works really well with cls pooling (default) but also with mean pooling.
15def pooling(outputs: torch.Tensor, inputs: Dict, strategy: str = 'cls') -> np.ndarray:
16 if strategy == 'cls':
17 outputs = outputs[:, 0]
18 elif strategy == 'mean':
19 outputs = torch.sum(
20 outputs * inputs["attention_mask"][:, :, None], dim=1) / torch.sum(inputs["attention_mask"], dim=1, keepdim=True)
21 else:
22 raise NotImplementedError
23 return outputs.detach().cpu().numpy()
24
25# 1. load model
26model_id = 'bobo/mxbai-embed-large-v1'
27tokenizer = AutoTokenizer.from_pretrained(model_id)
28model = AutoModel.from_pretrained(model_id).cuda()
29
30
31docs = [
32 transform_query('A man is eating a piece of bread'),
33 "A man is eating food.",
34 "A man is eating pasta.",
35 "The girl is carrying a baby.",
36 "A man is riding a horse.",
37]
38
39# 2. encode
40inputs = tokenizer(docs, padding=True, return_tensors='pt')
41for k, v in inputs.items():
42 inputs[k] = v.cuda()
43outputs = model(**inputs).last_hidden_state
44embeddings = pooling(outputs, inputs, 'cls')
45
46similarities = cos_sim(embeddings[0], embeddings[1:])
47print('similarities:', similarities)| Model | Avg (56 datasets) | Classification (12 datasets) | Clustering (11 datasets) | PairClassification (3 datasets) | Reranking (4 datasets) | Retrieval (15 datasets) | STS (10 datasets) | Summarization (1 dataset) |
|---|---|---|---|---|---|---|---|---|
| leeroy-jankins/bobo/mxbai-embed-large-v1 | 64.68 | 75.64 | 46.71 | 87.2 | 60.11 | 54.39 | 85.00 | 32.71 |
| bge-large-en-v1.5 | 64.23 | 75.97 | 46.08 | 87.12 | 60.03 | 54.29 | 83.11 | 31.61 |
| leeroy-jankins/bobo/mxbai-embed-large-v1 | 63.25 | 74.14 | 46.07 | 85.89 | 58.94 | 51.42 | 84.9 | 31.55 |
| nomic-embed-text-v1 | 62.39 | 74.12 | 43.91 | 85.15 | 55.69 | 52.81 | 82.06 | 30.08 |
| jina-embeddings-v2-base-en | 60.38 | 73.45 | 41.73 | 85.38 | 56.98 | 47.87 | 80.7 | 31.6 |
| Proprietary Models | ||||||||
| OpenAI text-embedding-3-large | 64.58 | 75.45 | 49.01 | 85.72 | 59.16 | 55.44 | 81.73 | 29.92 |
| Cohere embed-english-v3.0 | 64.47 | 76.49 | 47.43 | 85.84 | 58.01 | 55.00 | 82.62 | 30.18 |
| OpenAI text-embedding-ada-002 | 60.99 | 70.93 | 45.90 | 84.89 | 56.32 | 49.25 | 80.97 | 30.80 |