AI Slop Code RIsk Monitor

neuml/txtai

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

21.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for neuml/txtai, a Python project with 13,006 GitHub stars. SynthScan examined 61,401 lines of code across 491 source files, recording 660 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 21.6 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

21.6
Adjusted Signal
21.6
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
13.0K
Stars
Python
Language
61.4K
Lines of Code
491
Files
660
Pattern Hits
2026-10-12
Scan Date
0.22
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 36.0/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 267 finding(s).

Hallucinated Dependency & Supply Chain Risk 21.0/100 · LOW

Are imports declared and package/API names verified? 270 finding(s).

Agent Over-Engineering Ratio 33.8/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 138 finding(s).

PR Review Velocity Impact 67.4/100 · HIGH

Which changes need focused human review? 660 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2HIGH 104MEDIUM 89LOW 465

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 660 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition75 hits · 375 pts
SeverityFileLineSnippetContext
HIGHdocs/agent/index.md0gets the current date and time returns: current date and timeSTRING
HIGHdocs/agent/configuration.md0gets the current date and time returns: current date and timeSTRING
HIGHexamples/agent_quickstart.py0gets the current date and time returns: current date and timeSTRING
HIGHexamples/similarity.py0creates and caches a streamlit application. returns: applicationSTRING
HIGHexamples/wiki.py0creates and caches a streamlit application. returns: applicationSTRING
HIGHexamples/baseball.py0creates and caches a streamlit application. returns: applicationSTRING
HIGHexamples/article.py0creates and caches a streamlit application. returns: applicationSTRING
HIGHsrc/python/txtai/database/client.py0creates a new database. args: config: database configurationSTRING
HIGHsrc/python/txtai/database/rdbms.py0creates a new database. args: config: database configurationSTRING
HIGHsrc/python/txtai/database/embedded.py0creates a new database. args: config: database configurationSTRING
HIGHsrc/python/txtai/database/base.py0creates a new database. args: config: database configurationSTRING
HIGHsrc/python/txtai/database/client.py0executes a sql statement based on the current sql dialect. args: sql: sql to execute parameters: optional bind parameterSTRING
HIGHsrc/python/txtai/ann/dense/pgvector.py0executes a sql statement based on the current sql dialect. args: sql: sql to execute parameters: optional bind parameterSTRING
HIGHsrc/python/txtai/scoring/pgtext.py0executes a sql statement based on the current sql dialect. args: sql: sql to execute parameters: optional bind parameterSTRING
HIGHsrc/python/txtai/database/factory.py0attempt to resolve a custom backend. args: backend: backend class config: index configuration parameters returns: scorinSTRING
HIGHsrc/python/txtai/ann/dense/factory.py0attempt to resolve a custom backend. args: backend: backend class config: index configuration parameters returns: scorinSTRING
HIGHsrc/python/txtai/ann/sparse/factory.py0attempt to resolve a custom backend. args: backend: backend class config: index configuration parameters returns: scorinSTRING
HIGHsrc/python/txtai/graph/factory.py0attempt to resolve a custom backend. args: backend: backend class config: index configuration parameters returns: scorinSTRING
HIGHsrc/python/txtai/scoring/factory.py0attempt to resolve a custom backend. args: backend: backend class config: index configuration parameters returns: scorinSTRING
HIGHsrc/python/txtai/database/rdbms.py0creates a new term database connection. args: path: path to term database file returns: connectionSTRING
HIGHsrc/python/txtai/ann/dense/sqlite.py0creates a new term database connection. args: path: path to term database file returns: connectionSTRING
HIGHsrc/python/txtai/scoring/terms.py0creates a new term database connection. args: path: path to term database file returns: connectionSTRING
HIGHsrc/python/txtai/pipeline/llm/generation.py0returns true if this model supports chat. returns: true if this a chat modelSTRING
HIGHsrc/python/txtai/pipeline/llm/llm.py0returns true if this model supports chat. returns: true if this a chat modelSTRING
HIGHsrc/python/txtai/pipeline/llm/huggingface.py0returns true if this model supports chat. returns: true if this a chat modelSTRING
HIGHsrc/python/txtai/pipeline/llm/opencode.py0checks if path is available on the hf hub. args: input path returns: true if this is a model on the hf hubSTRING
HIGHsrc/python/txtai/pipeline/llm/litellm.py0checks if path is available on the hf hub. args: input path returns: true if this is a model on the hf hubSTRING
HIGHsrc/python/txtai/vectors/dense/litellm.py0checks if path is available on the hf hub. args: input path returns: true if this is a model on the hf hubSTRING
HIGHsrc/python/txtai/pipeline/llm/llama.py0checks if path is a wordvectors model. args: path: input path returns: true if this is a wordvectors model, false otherwSTRING
HIGHsrc/python/txtai/vectors/dense/llama.py0checks if path is a wordvectors model. args: path: input path returns: true if this is a wordvectors model, false otherwSTRING
HIGHsrc/python/txtai/pipeline/llm/litellm.py0checks if path is a wordvectors model. args: path: input path returns: true if this is a wordvectors model, false otherwSTRING
HIGHsrc/python/txtai/vectors/dense/litellm.py0checks if path is a wordvectors model. args: path: input path returns: true if this is a wordvectors model, false otherwSTRING
HIGHsrc/python/txtai/pipeline/llm/litert.py0checks if path is a wordvectors model. args: path: input path returns: true if this is a wordvectors model, false otherwSTRING
HIGHsrc/python/txtai/vectors/dense/litert.py0checks if path is a wordvectors model. args: path: input path returns: true if this is a wordvectors model, false otherwSTRING
HIGHsrc/python/txtai/vectors/dense/m2v.py0checks if path is a wordvectors model. args: path: input path returns: true if this is a wordvectors model, false otherwSTRING
HIGHsrc/python/txtai/vectors/dense/words.py0checks if path is a wordvectors model. args: path: input path returns: true if this is a wordvectors model, false otherwSTRING
HIGHsrc/python/txtai/pipeline/audio/texttospeech.py0returns a list of available and usable providers. returns: list of available and usable providersSTRING
HIGHsrc/python/txtai/models/onnx.py0returns a list of available and usable providers. returns: list of available and usable providersSTRING
HIGHsrc/python/txtai/vectors/dense/onnx.py0returns a list of available and usable providers. returns: list of available and usable providersSTRING
HIGHsrc/python/txtai/pipeline/text/summary.py0applies a series of rules to clean generated text. args: text: input text returns: clean textSTRING
HIGHsrc/python/txtai/pipeline/data/segmentation.py0applies a series of rules to clean generated text. args: text: input text returns: clean textSTRING
HIGHsrc/python/txtai/embeddings/search/query.py0applies a series of rules to clean generated text. args: text: input text returns: clean textSTRING
HIGHsrc/python/txtai/ann/dense/sqlite.py0initializes a new database session. args: recreate: recreates the database tables if trueSTRING
HIGHsrc/python/txtai/ann/dense/pgvector.py0initializes a new database session. args: recreate: recreates the database tables if trueSTRING
HIGHsrc/python/txtai/scoring/pgtext.py0initializes a new database session. args: recreate: recreates the database tables if trueSTRING
HIGHsrc/python/txtai/embeddings/base.py0deletes from an embeddings cluster. returns list of ids deleted. args: ids: list of ids to delete returns: ids deletedSTRING
HIGHsrc/python/txtai/app/base.py0deletes from an embeddings cluster. returns list of ids deleted. args: ids: list of ids to delete returns: ids deletedSTRING
HIGHsrc/python/txtai/api/base.py0deletes from an embeddings cluster. returns list of ids deleted. args: ids: list of ids to delete returns: ids deletedSTRING
HIGHsrc/python/txtai/api/routers/embeddings.py0deletes from an embeddings cluster. returns list of ids deleted. args: ids: list of ids to delete returns: ids deletedSTRING
HIGHsrc/python/txtai/api/cluster.py0deletes from an embeddings cluster. returns list of ids deleted. args: ids: list of ids to delete returns: ids deletedSTRING
HIGHsrc/python/txtai/embeddings/base.py0total number of elements in this embeddings index. returns: number of elements in embeddings indexSTRING
HIGHsrc/python/txtai/app/base.py0total number of elements in this embeddings index. returns: number of elements in embeddings indexSTRING
HIGHsrc/python/txtai/api/base.py0total number of elements in this embeddings index. returns: number of elements in embeddings indexSTRING
HIGHsrc/python/txtai/api/routers/embeddings.py0total number of elements in this embeddings index. returns: number of elements in embeddings indexSTRING
HIGHsrc/python/txtai/app/base.py0finds documents most similar to the input queries. this method will run either an index search or an index + database seSTRING
HIGHsrc/python/txtai/api/cluster.py0finds documents most similar to the input queries. this method will run either an index search or an index + database seSTRING
HIGHsrc/python/txtai/api/routers/embeddings.py0finds documents most similar to the input queries. this method will run either an index search or an index + database seSTRING
HIGHsrc/python/txtai/app/base.py0builds an embeddings index for previously batched documents.STRING
HIGHsrc/python/txtai/api/cluster.py0builds an embeddings index for previously batched documents.STRING
HIGHsrc/python/txtai/api/base.py0builds an embeddings index for previously batched documents.STRING
15 more matches not shown…
Unused Imports267 hits · 266 pts
SeverityFileLineSnippetContext
LOWtest/python/testoptional.py9CODE
LOWtest/python/testoptional.py10CODE
LOWtest/python/testoptional.py174CODE
LOWtest/python/testlibrary.py9CODE
LOWtest/python/testann/testdense/testfaiss.py68CODE
LOWsrc/python/txtai/__init__.py8CODE
LOWsrc/python/txtai/__init__.py9CODE
LOWsrc/python/txtai/__init__.py10CODE
LOWsrc/python/txtai/__init__.py11CODE
LOWsrc/python/txtai/__init__.py11CODE
LOWsrc/python/txtai/__init__.py11CODE
LOWsrc/python/txtai/__init__.py12CODE
LOWsrc/python/txtai/database/__init__.py5CODE
LOWsrc/python/txtai/database/__init__.py6CODE
LOWsrc/python/txtai/database/__init__.py7CODE
LOWsrc/python/txtai/database/__init__.py8CODE
LOWsrc/python/txtai/database/__init__.py9CODE
LOWsrc/python/txtai/database/__init__.py10CODE
LOWsrc/python/txtai/database/__init__.py11CODE
LOWsrc/python/txtai/database/__init__.py12CODE
LOWsrc/python/txtai/database/__init__.py13CODE
LOWsrc/python/txtai/database/__init__.py14CODE
LOWsrc/python/txtai/database/encoder/__init__.py5CODE
LOWsrc/python/txtai/database/encoder/__init__.py6CODE
LOWsrc/python/txtai/database/encoder/__init__.py7CODE
LOWsrc/python/txtai/database/encoder/__init__.py8CODE
LOWsrc/python/txtai/database/schema/__init__.py5CODE
LOWsrc/python/txtai/database/schema/__init__.py6CODE
LOWsrc/python/txtai/database/sql/__init__.py5CODE
LOWsrc/python/txtai/database/sql/__init__.py6CODE
LOWsrc/python/txtai/database/sql/__init__.py7CODE
LOWsrc/python/txtai/database/sql/__init__.py8CODE
LOWsrc/python/txtai/database/sql/__init__.py9CODE
LOWsrc/python/txtai/pipeline/__init__.py5CODE
LOWsrc/python/txtai/pipeline/__init__.py6CODE
LOWsrc/python/txtai/pipeline/__init__.py7CODE
LOWsrc/python/txtai/pipeline/__init__.py8CODE
LOWsrc/python/txtai/pipeline/__init__.py9CODE
LOWsrc/python/txtai/pipeline/__init__.py10CODE
LOWsrc/python/txtai/pipeline/__init__.py11CODE
LOWsrc/python/txtai/pipeline/__init__.py12CODE
LOWsrc/python/txtai/pipeline/__init__.py13CODE
LOWsrc/python/txtai/pipeline/__init__.py14CODE
LOWsrc/python/txtai/pipeline/__init__.py15CODE
LOWsrc/python/txtai/pipeline/__init__.py16CODE
LOWsrc/python/txtai/pipeline/__init__.py17CODE
LOWsrc/python/txtai/pipeline/llm/__init__.py5CODE
LOWsrc/python/txtai/pipeline/llm/__init__.py6CODE
LOWsrc/python/txtai/pipeline/llm/__init__.py7CODE
LOWsrc/python/txtai/pipeline/llm/__init__.py8CODE
LOWsrc/python/txtai/pipeline/llm/__init__.py9CODE
LOWsrc/python/txtai/pipeline/llm/__init__.py10CODE
LOWsrc/python/txtai/pipeline/llm/__init__.py11CODE
LOWsrc/python/txtai/pipeline/llm/__init__.py12CODE
LOWsrc/python/txtai/pipeline/llm/__init__.py13CODE
LOWsrc/python/txtai/pipeline/image/__init__.py5CODE
LOWsrc/python/txtai/pipeline/image/__init__.py6CODE
LOWsrc/python/txtai/pipeline/image/__init__.py7CODE
LOWsrc/python/txtai/pipeline/audio/__init__.py5CODE
LOWsrc/python/txtai/pipeline/audio/__init__.py6CODE
207 more matches not shown…
Self-Referential Comments61 hits · 179 pts
SeverityFileLineSnippetContext
MEDIUMtest/python/testconsole.py47 # Create an index for the list of textSTRING
MEDIUMtest/python/testconsole.py101 # Create an index for the list of textSTRING
MEDIUMtest/python/testembeddings.py153 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testembeddings.py333 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testembeddings.py366 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testembeddings.py392 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testembeddings.py585 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testembeddings.py820 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py59 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py80 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py210 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py260 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py278 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py294 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py313 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py465 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py475 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py497 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py517 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py576 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testgraph.py703 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testcloud.py155 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testencoder.py66 # Create an indexCOMMENT
MEDIUMtest/python/testdatabase/testencoder.py81 # Create an index for the list of imagesCOMMENT
MEDIUMtest/python/testdatabase/testencoder.py100 # Create an indexCOMMENT
MEDIUMtest/python/testdatabase/testencoder.py116 # Create an indexCOMMENT
MEDIUMtest/python/testdatabase/testencoder.py130 # Create an index for the list of imagesCOMMENT
MEDIUMtest/python/testdatabase/testencoder.py152 # Create an index for the list of imagesCOMMENT
MEDIUMtest/python/testdatabase/testduckdb.py92 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py63 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py165 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py177 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py289 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py376 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py389 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py402 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py485 # Create an index using mixed data (text and documents)COMMENT
MEDIUMtest/python/testdatabase/testrdbms.py503 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py629 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py642 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py661 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py687 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py718 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py760 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py960 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testrdbms.py984 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testdatabase/testsqlite.py58 # Create an index for the list of textCOMMENT
MEDIUMtest/python/testvectors/testdense/testvectors.py66 # Create the recovery instance with an empty checkpoint fileCOMMENT
MEDIUMsrc/python/txtai/pipeline/llm/litert.py51 # Create the engineCOMMENT
MEDIUMsrc/python/txtai/pipeline/text/entity.py25 # Create a new entity pipelineCOMMENT
MEDIUMsrc/python/txtai/pipeline/data/urlretrieve.py53 # Create a blank openerCOMMENT
MEDIUMsrc/python/txtai/pipeline/data/tokenizer.py58 # Create a tokenizer with backwards compatible settingsCOMMENT
MEDIUMsrc/python/txtai/pipeline/data/segmentation.py74 # Create a third-party chunker, if applicableCOMMENT
MEDIUMsrc/python/txtai/ann/dense/ggml.py143 # Initialize GGML objectsCOMMENT
MEDIUMsrc/python/txtai/ann/dense/ggml.py175 # Initialize GGML objectsCOMMENT
MEDIUMsrc/python/txtai/ann/dense/ggml.py194 # Initialize GGML objectsCOMMENT
MEDIUMsrc/python/txtai/ann/sparse/ivfsparse.py135 # This method is able to run as multiple threads due to a number of numpy/scipy method calls that drop the GIL.COMMENT
MEDIUMsrc/python/txtai/app/base.py65 # Initialize member variablesCOMMENT
MEDIUMsrc/python/txtai/agent/factory.py38 # Create the agent processCOMMENT
MEDIUMsrc/python/txtai/workflow/task/base.py245 # Create a copy of tuple, update data element and returnCOMMENT
1 more matches not shown…
Redundant / Tautological Comments57 hits · 89 pts
SeverityFileLineSnippetContext
LOWtest/python/testarchive.py48 # Check if file properly extractedCOMMENT
LOWexamples/baseball.py492 # Display resultsCOMMENT
LOWexamples/benchmarks.py84 # Increment offsetCOMMENT
LOWsrc/python/txtai/database/factory.py48 # Check if content is a URLCOMMENT
LOWsrc/python/txtai/database/sql/aggregate.py36 # Check if this is a SQL query with results. A sharded query that matchesCOMMENT
LOW⚡src/python/txtai/database/sql/expression.py71 # Check if separator, increment clause indexCOMMENT
LOW⚡src/python/txtai/database/sql/expression.py75 # Check if token is a square bracketCOMMENT
LOW⚡src/python/txtai/database/sql/expression.py80 # Check if token is a similar functionCOMMENT
LOW⚡src/python/txtai/database/sql/expression.py85 # Check if token is a functionCOMMENT
LOW⚡src/python/txtai/database/sql/expression.py301 # Check if token is a square bracketCOMMENT
LOW⚡src/python/txtai/database/sql/expression.py306 # Check if token is a similar functionCOMMENT
LOW⚡src/python/txtai/database/sql/expression.py311 # Check if token is a functionCOMMENT
LOWsrc/python/txtai/pipeline/hfpipeline.py39 # Check if input model is a Pipeline or a HF pipelineCOMMENT
LOWsrc/python/txtai/pipeline/llm/llama.py45 # Check if this is a local path, otherwise download from the HF HubCOMMENT
LOWsrc/python/txtai/pipeline/llm/litert.py48 # Check if this is a local path, otherwise download from the HF HubCOMMENT
LOWsrc/python/txtai/pipeline/audio/transcription.py97 # Read file or file-like objectCOMMENT
LOWsrc/python/txtai/pipeline/audio/texttospeech.py133 # Check if file existsCOMMENT
LOWsrc/python/txtai/pipeline/audio/texttospeech.py220 # Check if token is a punctuation tokenCOMMENT
LOWsrc/python/txtai/pipeline/train/hfonnx.py116 # Read file back to bytes if temp file was createdCOMMENT
LOWsrc/python/txtai/pipeline/data/filetohtml.py118 # Check if Java binary is available on pathCOMMENT
LOWsrc/python/txtai/pipeline/data/textractor.py50 # Check if text is a valid file path or urlCOMMENT
LOWsrc/python/txtai/pipeline/data/safeopen.py57 # Check if this is a local file path or local file urlCOMMENT
LOWsrc/python/txtai/pipeline/data/htmltomd.py413 # Check if this node is valid or it's part of a table cellCOMMENT
LOWsrc/python/txtai/pipeline/data/htmltomd.py416 # Check if text is valid article textCOMMENT
LOWsrc/python/txtai/pipeline/data/htmltomd.py452 # Check if this is a link node or link containerCOMMENT
LOWsrc/python/txtai/ann/dense/ggml.py313 # Write file and free resourcesCOMMENT
LOWsrc/python/txtai/embeddings/base.py519 # Check if this exists in a cloud instanceCOMMENT
LOWsrc/python/txtai/embeddings/base.py524 # Check if this is an archive file and existsCOMMENT
LOWsrc/python/txtai/embeddings/base.py554 # Check if this is an archive file and extractCOMMENT
LOWsrc/python/txtai/embeddings/base.py620 # Check if this is an archive fileCOMMENT
LOWsrc/python/txtai/embeddings/base.py844 # Check if default model should be loadedCOMMENT
LOWsrc/python/txtai/embeddings/base.py939 # Check if path is an archive fileCOMMENT
LOWsrc/python/txtai/embeddings/index/autoid.py35 # Check if signature takes a namespace argument (deterministic)COMMENT
LOWsrc/python/txtai/embeddings/index/indexes.py35 # Check if top-level indexing is enabled for this embeddings instanceCOMMENT
LOWsrc/python/txtai/embeddings/index/transform.py54 # Check if top-level indexing is enabled for this embeddingsCOMMENT
LOWsrc/python/txtai/embeddings/index/transform.py207 # Increment offsetCOMMENT
LOWsrc/python/txtai/app/base.py359 # Check if function is a pipelineCOMMENT
LOWsrc/python/txtai/app/base.py363 # Check if function is a workflowCOMMENT
LOWsrc/python/txtai/archive/zip.py24 # Write file to zipCOMMENT
LOWsrc/python/txtai/graph/topics.py74 # Check if scoring index has dataCOMMENT
LOWsrc/python/txtai/agent/base.py135 # Check if this is a file path (i.e. agents.md)STRING
LOWsrc/python/txtai/agent/tool/skill.py68 # Read file contentSTRING
LOWsrc/python/txtai/models/pooling/late.py25 # Check if fixed dimensional encoder is enabledCOMMENT
LOWsrc/python/txtai/vectors/recovery.py35 # Open file an returnCOMMENT
LOWsrc/python/txtai/vectors/base.py106 # Check if model is cachedCOMMENT
LOWsrc/python/txtai/vectors/dense/onnx.py52 # Check if this is a local path, otherwise download from the HF HubCOMMENT
LOWsrc/python/txtai/vectors/dense/llama.py50 # Check if this is a local path, otherwise download from the HF HubCOMMENT
LOWsrc/python/txtai/vectors/dense/words.py88 # Check if this is a SQLite databaseCOMMENT
LOWsrc/python/txtai/vectors/dense/external.py51 # Check if transform function resolution is allowedCOMMENT
LOWsrc/python/txtai/vectors/dense/litert.py51 # Check if this is a local path, otherwise download from the HF HubCOMMENT
LOWsrc/python/txtai/workflow/task/template.py38 # Check if element matches any processing rulesCOMMENT
LOWsrc/python/txtai/workflow/task/template.py91 # Check if any rules are matchedCOMMENT
LOWsrc/python/txtai/cloud/hub.py85 # Check if index files are lfs-tracked. Update .gitattributes, if necessary.COMMENT
LOWsrc/python/txtai/scoring/pgtext.py61 # Increment indexCOMMENT
LOWsrc/python/txtai/scoring/sif.py30 # Set freq to word frequencies across entire index when freq and idf shape don't matchCOMMENT
LOWsrc/python/txtai/scoring/tfidf.py90 # Increment indexCOMMENT
LOWsrc/python/txtai/scoring/tfidf.py162 # Check if term index availableCOMMENT
Docstring Block Structure16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHsrc/python/txtai/database/base.py117 Runs a search against the database. Supports the following methods: 1. Standard similarity query. STRING
HIGHsrc/python/txtai/database/base.py206 Executes query against database. Args: query: input query limit: maximum numbeSTRING
HIGHsrc/python/txtai/embeddings/base.py356 Finds documents most similar to the input query. This method runs an index search, index + database search STRING
HIGHsrc/python/txtai/embeddings/base.py378 Finds documents most similar to the input query. This method runs an index search, index + database search STRING
HIGHsrc/python/txtai/embeddings/search/scan.py38 Executes a scan for a list of queries. Args: queries: list of queries to run pSTRING
HIGHsrc/python/txtai/embeddings/search/scan.py80 Parse index query clauses from a list of parsed queries. Args: queries: list of parsed queSTRING
HIGHsrc/python/txtai/embeddings/search/scan.py114 Resolves bind parameters for a similar function call. Args: similar: similar function callSTRING
HIGHsrc/python/txtai/embeddings/search/base.py45 Executes a batch search for queries. This method will run either an index search or an index + database search STRING
HIGHsrc/python/txtai/embeddings/search/base.py215 Executes an index + database search. Args: queries: list of queries limit: maxSTRING
HIGHsrc/python/txtai/app/base.py375 Finds documents most similar to the input query. This method will run either an index search or an indeSTRING
HIGHsrc/python/txtai/app/base.py401 Finds documents most similar to the input queries. This method will run either an index search or an inSTRING
HIGHsrc/python/txtai/graph/query.py169 Filters the input graph by uids. This method also adds similar match attributes. Args: graSTRING
HIGHsrc/python/txtai/workflow/task/base.py266 Executes action(s) on elements. Args: elements: iterable data elements executoSTRING
HIGHsrc/python/txtai/api/cluster.py42 Finds documents most similar to the input query. This method will run either an index search or an indeSTRING
HIGHsrc/python/txtai/api/cluster.py85 Finds documents most similar to the input queries. This method will run either an index search or an inSTRING
HIGHsrc/python/txtai/api/routers/embeddings.py61 Finds documents most similar to the input queries. This method will run either an index search or an index + daSTRING
Deep Nesting64 hits · 64 pts
SeverityFileLineSnippetContext
LOWtest/python/testworkflow.py445CODE
LOWtest/python/testann/testdense/testsqlite.py149CODE
LOWtest/python/testscoring/testkeyword.py167CODE
LOWtest/python/testscoring/testkeyword.py205CODE
LOWtest/python/testscoring/testkeyword.py243CODE
LOWtest/python/testscoring/testkeyword.py317CODE
LOWtest/python/testapi/testcluster.py34CODE
LOWtest/python/testpipeline/testtrain/testtrainer.py333CODE
LOWtest/python/testpipeline/testtrain/testtrainer.py596CODE
LOWexamples/books.py47CODE
LOWexamples/workflows.py119CODE
LOWexamples/workflows.py146CODE
LOWexamples/workflows.py225CODE
LOWexamples/workflows.py409CODE
LOWexamples/workflows.py503CODE
LOWexamples/workflows.py676CODE
LOWexamples/baseball.py158CODE
LOWexamples/baseball.py297CODE
LOWsrc/python/txtai/database/factory.py21CODE
LOWsrc/python/txtai/database/rdbms.py36CODE
LOWsrc/python/txtai/database/rdbms.py176CODE
LOWsrc/python/txtai/database/rdbms.py479CODE
LOWsrc/python/txtai/database/sql/aggregate.py53CODE
LOWsrc/python/txtai/database/sql/expression.py53CODE
LOWsrc/python/txtai/database/sql/expression.py128CODE
LOWsrc/python/txtai/database/sql/expression.py285CODE
LOWsrc/python/txtai/pipeline/hfmodel.py91CODE
LOWsrc/python/txtai/pipeline/llm/factory.py58CODE
LOWsrc/python/txtai/pipeline/llm/rag.py178CODE
LOWsrc/python/txtai/pipeline/llm/rag.py399CODE
LOWsrc/python/txtai/pipeline/image/imagehash.py68CODE
LOWsrc/python/txtai/pipeline/audio/microphone.py93CODE
LOWsrc/python/txtai/pipeline/train/hftrainer.py208CODE
LOWsrc/python/txtai/pipeline/text/reranker.py44CODE
LOWsrc/python/txtai/pipeline/text/reranker.py157CODE
LOWsrc/python/txtai/pipeline/data/tokenizer.py100CODE
LOWsrc/python/txtai/pipeline/data/tokenizer.py143CODE
LOWsrc/python/txtai/pipeline/data/htmltomd.py175CODE
LOWsrc/python/txtai/pipeline/data/segmentation.py125CODE
LOWsrc/python/txtai/ann/dense/factory.py28CODE
LOWsrc/python/txtai/embeddings/search/scan.py79CODE
LOWsrc/python/txtai/embeddings/index/transform.py123CODE
LOWsrc/python/txtai/app/base.py95CODE
LOWsrc/python/txtai/app/base.py150CODE
LOWsrc/python/txtai/app/base.py185CODE
LOWsrc/python/txtai/app/base.py252CODE
LOWsrc/python/txtai/app/base.py307CODE
LOWsrc/python/txtai/graph/query.py130CODE
LOWsrc/python/txtai/graph/base.py443CODE
LOWsrc/python/txtai/graph/base.py518CODE
LOWsrc/python/txtai/graph/base.py595CODE
LOWsrc/python/txtai/graph/networkx.py122CODE
LOWsrc/python/txtai/agent/tool/grep.py39CODE
LOWsrc/python/txtai/agent/tool/factory.py51CODE
LOWsrc/python/txtai/models/models.py231CODE
LOWsrc/python/txtai/models/pooling/late.py297CODE
LOWsrc/python/txtai/vectors/dense/factory.py81CODE
LOWsrc/python/txtai/vectors/dense/words.py154CODE
LOWsrc/python/txtai/scoring/factory.py21CODE
LOWsrc/python/txtai/scoring/tfidf.py63CODE
4 more matches not shown…
Modern AI Meta-Vocabulary22 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMtest/python/testapi/testapipipeline.py49# Enable pipeline similarity backed by zero shot classifierCOMMENT
MEDIUMtest/python/testapi/testapiembeddings.py74# Configuration for RAGSTRING
MEDIUMtest/python/testapi/testapiembeddings.py92# RAG settingsCOMMENT
MEDIUMtest/python/testapi/testapiembeddings.py446 # Re-create application with a RAG pipelineSTRING
MEDIUMtest/python/testpipeline/testtrain/testonnx.py159 # Test zero shot classificationCOMMENT
MEDIUMdocs/observability.md69### Retrieval Augmented Generation (RAG)COMMENT
MEDIUMdocs/observability.md88 # Create RAG pipelineCOMMENT
MEDIUMdocs/pipeline/llm/rag.md1# RAGCOMMENT
MEDIUMdocs/pipeline/llm/rag.md33# Create the RAG pipelineCOMMENT
MEDIUMdocs/pipeline/llm/rag.md44# Run RAG pipelineSTRING
MEDIUMdocs/pipeline/llm/rag.md83# - Streaming RAG response with `stream=True`STRING
MEDIUMdocs/pipeline/llm/rag.md179### ::: txtai.pipeline.RAG.__init__STRING
MEDIUMdocs/pipeline/llm/rag.md180### ::: txtai.pipeline.RAG.__call__STRING
MEDIUMdocs/agent/index.md64## Agentic RAGCOMMENT
MEDIUM⚡examples/rag_quickstart.py44# Step 4: Create RAG pipelineCOMMENT
MEDIUM⚡examples/benchmarks.py244 # Read RAG configurationCOMMENT
MEDIUM⚡examples/benchmarks.py247 # Load RAG pipelineCOMMENT
MEDIUM⚡examples/benchmarks.py251 # Set context window size to limit and runCOMMENT
MEDIUM⚡examples/agent_quickstart.py19# See RAG Quickstart for an example of building your own custom databaseCOMMENT
MEDIUMsrc/python/txtai/pipeline/text/labels.py16 # Set if labels are dynamic (zero shot) or fixed (standard text classification)COMMENT
MEDIUMsrc/python/txtai/pipeline/text/labels.py42 # Run zero shot classification pipelineCOMMENT
MEDIUMsrc/python/txtai/pipeline/text/similarity.py27 # Use zero-shot classification if dynamic is True and crossencode is False, otherwise use standard text clasCOMMENT
Empty Error Handlers12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHtest/python/testarchive.py62except OSError:CODE
HIGHexamples/benchmarks.py503except:CODE
HIGHsrc/python/txtai/pipeline/text/entity.py91except DownloadError:CODE
HIGHsrc/python/txtai/pipeline/data/urlretrieve.py102except Exception:CODE
HIGHsrc/python/txtai/pipeline/data/htmltomd.py275except ValueError:CODE
HIGHsrc/python/txtai/ann/sparse/zvecsparse.py8except ImportError:CODE
HIGHsrc/python/txtai/agent/tool/grep.py72except (UnicodeDecodeError, FileNotFoundError):CODE
HIGHsrc/python/txtai/models/pooling/factory.py162except DownloadError:CODE
HIGHsrc/python/txtai/models/pooling/base.py180except DownloadError:CODE
HIGHsrc/python/txtai/vectors/dense/m2v.py45except (DownloadError, ImportError):CODE
HIGHsrc/python/txtai/vectors/dense/words.py101except (DownloadError, ImportError):CODE
HIGHsrc/python/txtai/console/base.py213except:CODE
Decorative Section Separators6 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM⚡docs/workflow/schedule.md13# ┌─────────────── minute (0 - 59)COMMENT
MEDIUM⚡docs/workflow/schedule.md14# | ┌───────────── hour (0 - 23)COMMENT
MEDIUM⚡docs/workflow/schedule.md15# | | ┌─────────── day of the month (1 - 31)COMMENT
MEDIUM⚡docs/workflow/schedule.md16# | | | ┌───────── month (1 - 12)COMMENT
MEDIUM⚡docs/workflow/schedule.md17# | | | | ┌─────── day of the week (0 - 6)COMMENT
MEDIUM⚡docs/workflow/schedule.md18# | | | | | ┌───── second (0 - 59)COMMENT
Verbosity Indicators12 hits · 26 pts
SeverityFileLineSnippetContext
LOW⚡examples/rag_quickstart.py20# Step 1: Collect files from local directoryCOMMENT
LOW⚡examples/rag_quickstart.py26# Step 2: Text Extraction / ChunkingCOMMENT
LOW⚡examples/rag_quickstart.py37# Step 3: Build an embeddings databaseCOMMENT
LOW⚡examples/rag_quickstart.py44# Step 4: Create RAG pipelineCOMMENT
LOW⚡examples/workflow_quickstart.py16# Step 1: Define available pipelinesCOMMENT
LOW⚡examples/workflow_quickstart.py21# Step 2: Define workflow tasksCOMMENT
LOW⚡examples/workflow_quickstart.py24# Step 3: Run the workflowCOMMENT
LOW⚡examples/agent_quickstart.py16# Step 1: Define your Embeddings databaseCOMMENT
LOW⚡examples/agent_quickstart.py29# Step 2: Define other toolsCOMMENT
LOW⚡examples/agent_quickstart.py43# Step 3: Create a list of available toolsCOMMENT
LOW⚡examples/agent_quickstart.py53# Step 4: Set LLM configurationCOMMENT
LOWexamples/agent_quickstart.py72# Step 4: Create an AgentCOMMENT
Structural Annotation Overuse12 hits · 26 pts
SeverityFileLineSnippetContext
LOW⚡examples/rag_quickstart.py20# Step 1: Collect files from local directoryCOMMENT
LOW⚡examples/rag_quickstart.py26# Step 2: Text Extraction / ChunkingCOMMENT
LOW⚡examples/rag_quickstart.py37# Step 3: Build an embeddings databaseCOMMENT
LOW⚡examples/rag_quickstart.py44# Step 4: Create RAG pipelineCOMMENT
LOW⚡examples/workflow_quickstart.py16# Step 1: Define available pipelinesCOMMENT
LOW⚡examples/workflow_quickstart.py21# Step 2: Define workflow tasksCOMMENT
LOW⚡examples/workflow_quickstart.py24# Step 3: Run the workflowCOMMENT
LOW⚡examples/agent_quickstart.py16# Step 1: Define your Embeddings databaseCOMMENT
LOW⚡examples/agent_quickstart.py29# Step 2: Define other toolsCOMMENT
LOW⚡examples/agent_quickstart.py43# Step 3: Create a list of available toolsCOMMENT
LOW⚡examples/agent_quickstart.py53# Step 4: Set LLM configurationCOMMENT
LOWexamples/agent_quickstart.py72# Step 4: Create an AgentCOMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALsrc/python/txtai/pipeline/text/labels.py72 return list(self.pipeline.model.config.id2label.values())CODE
CRITICALsrc/python/txtai/pipeline/text/crossencoder.py72 raise ValueError(f"None of the requested labels {labels} matched model labels {list(self.pipeline.model.confCODE
Excessive Try-Catch Wrapping17 hits · 17 pts
SeverityFileLineSnippetContext
LOWsrc/python/txtai/database/factory.py77 except Exception as e:CODE
LOWsrc/python/txtai/database/base.py327 except Exception as e:CODE
LOWsrc/python/txtai/pipeline/llm/factory.py100 except Exception as e:CODE
LOWsrc/python/txtai/pipeline/data/urlretrieve.py102 except Exception:CODE
LOWsrc/python/txtai/ann/dense/milvus.py45 except Exception:CODE
LOWsrc/python/txtai/ann/dense/factory.py92 except Exception as e:CODE
LOWsrc/python/txtai/ann/dense/zvec.py44 except Exception:CODE
LOWsrc/python/txtai/ann/sparse/factory.py64 except Exception as e:CODE
LOWsrc/python/txtai/embeddings/index/indexes.py74 except Exception as e:CODE
LOWsrc/python/txtai/app/base.py331 except Exception:CODE
LOWsrc/python/txtai/graph/factory.py61 except Exception as e:CODE
LOWsrc/python/txtai/vectors/dense/factory.py135 except Exception as e:CODE
LOWsrc/python/txtai/vectors/sparse/factory.py55 except Exception as e:CODE
LOWsrc/python/txtai/workflow/base.py106 except Exception:CODE
LOWsrc/python/txtai/cloud/factory.py64 except Exception as e:CODE
LOWsrc/python/txtai/scoring/factory.py95 except Exception as e:CODE
LOWsrc/python/txtai/console/base.py92 except Exception:CODE
Modern Structural Boilerplate13 hits · 13 pts
SeverityFileLineSnippetContext
LOWsrc/python/txtai/__init__.py15logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/database/base.py12logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/pipeline/llm/llm.py12logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/pipeline/audio/texttospeech.py35logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/pipeline/audio/microphone.py28logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/pipeline/text/reranker.py16logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/embeddings/search/base.py12logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/graph/query.py16logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/serialize/pickle.py13logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/vectors/dense/words.py29logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/workflow/base.py22logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/workflow/task/base.py19logger = logging.getLogger(__name__)CODE
LOWsrc/python/txtai/scoring/terms.py22logger = logging.getLogger(__name__)CODE
AI Structural Patterns9 hits · 9 pts
SeverityFileLineSnippetContext
LOWsrc/python/txtai/pipeline/llm/rag.py24CODE
LOWsrc/python/txtai/pipeline/audio/microphone.py37CODE
LOWsrc/python/txtai/pipeline/train/lemur.py26CODE
LOWsrc/python/txtai/pipeline/train/lemur.py125CODE
LOWsrc/python/txtai/pipeline/train/hftrainer.py39CODE
LOWsrc/python/txtai/pipeline/data/textractor.py20CODE
LOWsrc/python/txtai/pipeline/data/segmentation.py31CODE
LOWsrc/python/txtai/workflow/task/base.py27CODE
LOWsrc/python/txtai/data/texts.py75CODE
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWdocs/pipeline/text/reranker.md81### ::: txtai.pipeline.Reranker.__init__COMMENT
LOWdocs/pipeline/data/tokenizer.md81### ::: txtai.pipeline.Tokenizer.__init__COMMENT
LOWdocs/pipeline/data/urlretrieve.md61### ::: txtai.pipeline.URLRetrieve.__init__COMMENT
LOWdocs/pipeline/data/textractor.md81### ::: txtai.pipeline.Textractor.__init__COMMENT
LOWdocs/agent/methods.md1# MethodsCOMMENT
LOWexamples/rag_quickstart.py21#COMMENT
LOWexamples/agent_quickstart.py41COMMENT
LOWexamples/agent_quickstart.py61# model = "ollama/gpt-ossCOMMENT
Hyper-Verbose Identifiers6 hits · 5 pts
SeverityFileLineSnippetContext
LOWtest/python/testapi/testapiworkflow.py109class RequestHandler(BaseHTTPRequestHandler):STRING
LOWtest/python/testapi/testcluster.py29class RequestHandler(BaseHTTPRequestHandler):STRING
LOWtest/python/testpipeline/testdata/testurlretrieve.py16class RequestHandler(BaseHTTPRequestHandler):CODE
LOWtest/python/testpipeline/testllm/testopencode.py14class RequestHandler(BaseHTTPRequestHandler):CODE
LOWtest/python/testpipeline/testllm/testlitellm.py19class RequestHandler(BaseHTTPRequestHandler):CODE
LOWtest/python/testvectors/testdense/testlitellm.py17class RequestHandler(BaseHTTPRequestHandler):CODE
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHexamples/books.py8 mkdir openlibrary && cd openlibrarySTRING