{"schemaVersion":1,"resourceType":"connector","slug":"nlp","name":"NLP","catalog":"nlp","description":"Detect language, score sentiment, extract entities and tokenize text from queries","language":"Python","categories":["ai"],"repository":"https://github.com/Query-farm/vgi-nlp","license":"LicenseRef-QueryFarm-Source-Available-1.0","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.5.0","publishedAt":"2026-11-25T18:31:13Z","url":"https://github.com/Query-farm/vgi-nlp/releases/tag/v0.5.0"},"links":{"html":"https://query.farm/products/orchard/connectors/nlp/","llms":"https://query.farm/products/orchard/connectors/nlp/llms.txt","markdown":"https://query.farm/products/orchard/connectors/nlp/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/nlp.json","objects":"https://query.farm/products/orchard/api/v1/connectors/nlp/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=nlp&q={query}"},"authentication":{"mode":"none_declared","guidance":"No service credentials are declared by this connector. Individual datasets, input files or deployments may have their own prerequisites.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[]},"deployment":{"local":{"methods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'nlp' AS nlp (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-nlp@v0.5.0 vgi-nlp-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'nlp' AS nlp (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-nlp:0.5.0'\n);"}]}],"pinnedMethods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'nlp' AS nlp (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-nlp@v0.5.0 vgi-nlp-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'nlp' AS nlp (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-nlp:0.5.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-nlp","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=nlp","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'nlp' AS nlp (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-nlp@v0.5.0 vgi-nlp-worker'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Extract named entities from a literal document, keyed back to its id.","sql":"SELECT id, ent_text, label FROM nlp.main.entities((SELECT 1 AS id, 'Apple is based in California.' AS body), id := 'id', lang := 'en')","requiresCredentials":null,"note":null,"objects":[{"name":"nlp.main.entities","kind":"table_in_out_function","links":{"html":"https://query.farm/products/orchard/connectors/nlp/#obj-main-entities","markdown":"https://query.farm/products/orchard/connectors/nlp/objects/table_in_out_function.bWFpbg.ZW50aXRpZXM.md","json":"https://query.farm/products/orchard/api/v1/connectors/nlp/objects/table_in_out_function.bWFpbg.ZW50aXRpZXM.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:16:30+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.5.0","sample":{"columns":["id","ent_text","label"],"types":["INTEGER","VARCHAR","VARCHAR"],"rows":[[1,"Apple","ORG"],[1,"California","GPE"]],"more":false}},"artifact":null},"objects":{"total":12,"index":"https://query.farm/products/orchard/api/v1/connectors/nlp/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=nlp&q={query}"},"agentTasks":["Identify the language of the text 'Bonjour tout le monde, comment allez-vous aujourd''hui?' and return its two-letter ISO-639 language code in a column named lang.","Decide whether the language detector is highly confident (more than 90%) that the text 'The quick brown fox jumps over the lazy dog' is English. Return a single boolean column named confident_english that is true only when the detected ISO-639 code is 'en' and the detection confidence exceeds 0.9.","Decide whether the sentence 'I absolutely love this product, it works wonderfully!' expresses positive sentiment. Using the compound sentiment score, return a single boolean column named is_positive that is true when the score is above the standard positive threshold of 0.05.","Classify the sentiment of the sentence 'This is the worst experience I have ever had' into a coarse label of negative, neutral, or positive, and return the label in a column named mood.","Produce a canonical, comparable form of the string '  Cafe   DELUXE  ' by applying Unicode normalization, lowercasing, and collapsing runs of whitespace. Return it in a column named canonical.","Lemmatize the English sentence 'The cats were running quickly', reducing each word to its dictionary base form. Decide whether the lemmatized result contains the base form 'run'. Return a single boolean column named has_run. Treat the text as English.","Remove English stop-words and punctuation from the sentence 'this is a really great movie'. Decide whether the content word 'great' survives the stop-word removal. Return a single boolean column named keeps_great. Treat the text as English.","Decide whether the sentence 'Apple was founded by Steve Jobs in California.' contains at least two named entities. Treat the text as English. Return a single boolean column named has_entities."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-nlp","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":5,"passed":5,"failed":0,"needs_credentials":0,"location":"uvx --from git+https://github.com/Query-farm/vgi-nlp@v0.5.0 vgi-nlp-worker","transport":"subprocess","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:15:46+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}