File size: 2,124 Bytes
781b0f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
--
-- PostgreSQL database dump
--

\restrict VpAWuaVPoLiLrNQcJ3fhrE1M2pK0GloNxwyAfeczKKR0Xk2RaVSJxkkp9kKHBTI

-- Dumped from database version 17.11 (Debian 17.11-1.pgdg12+2)
-- Dumped by pg_dump version 17.11 (Debian 17.11-1.pgdg12+2)

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- Name: eval_chunks; Type: TABLE; Schema: public; Owner: ocrrag
--

CREATE TABLE public.eval_chunks (
    ns text NOT NULL,
    chunk_id text NOT NULL,
    document_id text NOT NULL,
    text text NOT NULL,
    page_from integer NOT NULL,
    page_to integer NOT NULL,
    order_idx integer NOT NULL,
    block_ids text[] DEFAULT '{}'::text[] NOT NULL,
    attrs jsonb DEFAULT '{}'::jsonb NOT NULL,
    embedding public.vector(1024) NOT NULL,
    tsv tsvector NOT NULL,
    doc_len integer DEFAULT '-1'::integer NOT NULL
);


ALTER TABLE public.eval_chunks OWNER TO ocrrag;

--
-- Name: eval_chunks eval_chunks_pkey; Type: CONSTRAINT; Schema: public; Owner: ocrrag
--

ALTER TABLE ONLY public.eval_chunks
    ADD CONSTRAINT eval_chunks_pkey PRIMARY KEY (ns, chunk_id);


--
-- Name: eval_chunks_embedding_hnsw_idx; Type: INDEX; Schema: public; Owner: ocrrag
--

CREATE INDEX eval_chunks_embedding_hnsw_idx ON public.eval_chunks USING hnsw (embedding public.vector_cosine_ops);


--
-- Name: eval_chunks_ns_document_idx; Type: INDEX; Schema: public; Owner: ocrrag
--

CREATE INDEX eval_chunks_ns_document_idx ON public.eval_chunks USING btree (ns, document_id);


--
-- Name: eval_chunks_tsv_gin_idx; Type: INDEX; Schema: public; Owner: ocrrag
--

CREATE INDEX eval_chunks_tsv_gin_idx ON public.eval_chunks USING gin (tsv);


--
-- PostgreSQL database dump complete
--

\unrestrict VpAWuaVPoLiLrNQcJ3fhrE1M2pK0GloNxwyAfeczKKR0Xk2RaVSJxkkp9kKHBTI