{"schemaVersion":1,"resourceType":"connector","slug":"tika","name":"Apache Tika","catalog":"tika","description":"Pull text and metadata out of PDFs, Office files and other documents, detect their type and language, and OCR scanned images","language":"Java","categories":["documents"],"repository":"https://github.com/Query-farm/vgi-tika","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.5.0","publishedAt":"2026-11-25T17:52:25Z","url":"https://github.com/Query-farm/vgi-tika/releases/tag/v0.5.0"},"links":{"html":"https://query.farm/products/orchard/connectors/tika/","llms":"https://query.farm/products/orchard/connectors/tika/llms.txt","markdown":"https://query.farm/products/orchard/connectors/tika/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/tika.json","objects":"https://query.farm/products/orchard/api/v1/connectors/tika/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=tika&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":"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 'tika' AS tika (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-tika:0.5.0'\n);"}]}],"pinnedMethods":[{"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 'tika' AS tika (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-tika:0.5.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-tika","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=tika","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 'tika' AS tika (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-tika:0.5.0'\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 text and metadata from a PDF","sql":"SET VARIABLE pdf = (SELECT content FROM read_blob('https://raw.githubusercontent.com/Query-farm/vgi-tika/v0.4.2/test/sql/data/multipage.pdf'));\nSELECT content, mime, n_pages FROM tika.main.extract_text(getvariable('pdf'));","requiresCredentials":null,"note":"Uses a public sample PDF. Replace its URL with a local file path to read your own document.","objects":[{"name":"tika.main.extract_text","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/tika/#obj-main-extract_text","markdown":"https://query.farm/products/orchard/connectors/tika/objects/table_function.bWFpbg.ZXh0cmFjdF90ZXh0.md","json":"https://query.farm/products/orchard/api/v1/connectors/tika/objects/table_function.bWFpbg.ZXh0cmFjdF90ZXh0.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:21:29+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.5.0","sample":{"columns":["content","mime","n_pages"],"types":["VARCHAR","VARCHAR","INTEGER"],"rows":[["\nFirst page alpha content.\n\n\n\nSecond page beta content.\n\n\n\nThird page gamma con…","application/pdf",3]],"more":false}},"artifact":null},"objects":{"total":7,"index":"https://query.farm/products/orchard/api/v1/connectors/tika/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=tika&q={query}"},"agentTasks":["I have a document whose raw bytes are the text 'Hello, this is a plain-text document body.'. What media (MIME) type does this worker detect for it? Return a single row with one column named mime.","Detect the natural language of this sentence: 'The quick brown fox jumps over the lazy dog while the sun sets slowly behind the distant hills.'. Return a single row with one column named lang holding the detected language code.","For the sentence 'The quick brown fox jumps over the lazy dog while the sun sets slowly behind the distant hills.', how confident is the language detector in its top guess? Return the raw confidence score, unrounded, as a single row with one column named confidence.","Using the single-document extraction, return the detected media type of a document whose raw bytes are 'A short quarterly report body.'. Return a single row with one column named mime.","Using the metadata-only function (no body text), return the detected media type of a document whose raw bytes are 'A brief internal memo.'. Return a single row with one column named mime.","I have a small table of two documents: id 1 with raw bytes 'alpha document body' and id 2 with raw bytes 'beta document body'. Process them all at once and return each document's id together with its detected media type, ordered by id ascending. Return two columns named id and mime.","Run optical character recognition over a tiny input whose raw bytes are 'x' (there is no real image, so OCR yields no recognizable characters). Return a single row with one column named text holding whatever OCR produces.","I have three documents as raw bytes: id 1 is 'The quarterly report shows strong growth across every region this year.', id 2 is 'Invoice 4471-B', and id 3 is 'Le rapport trimestriel montre une forte croissance dans toutes les regions.'. Extract the body text of each document and find the one whose language detection is least confident. Return a single row with one INTEGER column named id."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-tika","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":2,"passed":2,"failed":0,"needs_credentials":0,"location":"java -jar /private/tmp/orchard-protocol34/assets/vgi-tika-v0.5.0.jar","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:19: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."]}