text
stringlengths
3
8.33k
repo
stringclasses
52 values
path
stringlengths
6
141
language
stringclasses
35 values
sha
stringlengths
64
64
chunk_index
int32
0
273
n_tokens
int32
1
896
. Go and Chess ■ Objective: win the game ■ State: position of all pieces/figures ■ Action: where to put the next piece (Go), next legal move (Chess) ■ Reward: 1 if win at the end of the game, -1 if loss, 0 for draw 12/34" }, { "id": "unit-06-p014", "sourceId": "unit-06", "lectureId": "unit-06"...
hands-on-ai
lib/data/slide-index.json
JSON
54ce6ea2eff4da87914fe7dddd0f8776ca586851eb2abd9614e84b9e2b354f3e
123
896
", "sourceId": "unit-06", "lectureId": "unit-06", "page": 16, "title": "Unit 6: Introduction to Reinforcement Learning page 16", "text": "Q-Learning Given some arbitrarily initialized Q-table (e.g., 0), repeatedly perform the following steps: 1. Given some state st, choose action at (rando...
hands-on-ai
lib/data/slide-index.json
JSON
ef9110f0782ba5289e1c7d873c9ac4df69182edd4b593c09ac4d31741805ada8
124
896
many RL problems, the agent starts in some initial state and interacts with the environment until it reaches a terminal state (e.g., win/loss in a game). ■ Such a sequence of states, actions, and rewards is called an episode. ■ After each episode, the agent can start again from the initial state and learn from the expe...
hands-on-ai
lib/data/slide-index.json
JSON
841d9e3130f8956dfeaadd987f04c87e27696d7063cfedc21b1f8eebaa7c9174
125
896
location. ■ Taxi location indicated with yellow block (no passenger inside) or green block (passenger inside). 19/34" }, { "id": "unit-06-p021", "sourceId": "unit-06", "lectureId": "unit-06", "page": 21, "title": "Unit 6: Introduction to Reinforcement Learning page 21", "text...
hands-on-ai
lib/data/slide-index.json
JSON
58ea41a3301185bd529076479bac89c7da88c2bb125d2c42690e146035da6858
126
896
, a) \u0011 Q(s12, a1) ← 0.9 · 0 + 0.1 ·   −1 + max a   Q(s174, a0) = 0 Q(s174, a1) = 0 Q(s174, a2) = 0 Q(s174, a3) = 0 Q(s174, a4) = 0 Q(s174, a5) = 0     Q(s12, a1) ← 0.1 · (−1 + 0) Q(s12, a1) ← −0.1 23/34", "keywords": [], "retrievalText": "Data and Supervised Lear...
hands-on-ai
lib/data/slide-index.json
JSON
5bb5a77ad1ff084f6a1d870e6d1e69ee53d9f345d8ab835b0c414223b86dfbbd
127
896
Man? ■ No, would need a huge Q-table: more than 1045 different states! ■ How to approximate Q(s, a)? → Deep Q-Learning □ Q-table → Neural network □ State → Input □ Q-values → Output 25/34", "keywords": [ "q-learning", "q-value", "state", "mdp", "neural" ], "retr...
hands-on-ai
lib/data/slide-index.json
JSON
e8cb4adee187de8640f533901ca1f443dafd6d48cd86641d50866e92f574731c
128
896
■ Potential limitation in reachable performance. ■ After several innovations, superhuman performance was achieved only by self-play: AlphaGo Zero (2017). ■ Beating AlphaGo 100-0. ■ AlphaGo/AlphaGo Zero are not only based on Deep Learning. ■ Lookahead via Monte Carlo Tree Searchis crucial as well. 28/34" }, { ...
hands-on-ai
lib/data/slide-index.json
JSON
7c9347d5e421143ca448eb1d2c8e8b35899190796264d38ccbcfdb73da7d9dac
129
896
": 35, "title": "Unit 6: Introduction to Reinforcement Learning page 35", "text": "Narrow AI vs. General AI ■ Games are a great testbed for RL algorithms, but the environment is often more predictable and restricted: □ Fixed rules and dynamics □ Well-defined reward structure □ Clear goals and terminal state...
hands-on-ai
lib/data/slide-index.json
JSON
1361c9c1f237dad6495b403e46f2d1a2b0002169ace92a304d22459ec125e605
130
568
"""Build the Hands On AI II static exam trainer dataset. The app is intentionally data-driven. This script keeps the UI logic reusable while regenerating: - public scan images for source dialogs - lib/data/question-bank.json - lib/data/slide-index.json Only standard-library parsing is used for DOCX. PDF text/renderi...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
1b78c2a57dffbe75351a9af9899a49aacbd778b63e23aaa55bddd00edc1247ba
0
896
"unit-03"], "description": "Sequence input, feed-forward limitations, RNN output sizes, BPTT, LSTM gates, CEC, and RNN type mappings.", }, { "id": "language-models", "title": "Language Models and Transformers", "lectureIds": ["summary-unit-02", "unit-04"], "description": ...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
d969c92061e90d46df67e32fbe74c54f72a0de6eca61034d50f556d04dbb768d
1
896
"RNN TYPES": "sequence-models", "WORD EMBEDDING": "language-models", "WORD2VEC": "language-models", "TRANSFORMERS": "language-models", "SEL-ATTENTION": "language-models", "SELF-ATTENTION": "language-models", "DRUG DISCOVERY": "drug-discovery", "TARGET PREDICTION": "drug-discovery", "QSAR...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
970effa85561b0de562bcdaaf8a6c9bbe418482b69015e7fbee6546831f7a305
2
896
of length $T_x > 1$, the output/prediction length is $T_y = 1$.", "Given an input of length $T_x = 1$, the output/prediction length is $T_y > 1$.", "Given an input of length $T_x = 1$, the output/prediction length is $T_y = 1$.", "Given an input of length $T_x > 1$, the output/predic...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
4a5e951f33b153df81001da8b0194bf855ecfdc060337ba3963513d33b6953d2
3
896
following statements is true about sequence data input and standard, feed-forward neural networks?", [ "Sequences with variable lengths must be preprocessed before they can be an input to a feed-forward neural network.", "The relation of elements in the sequence is preserved.", ...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
4673834b0ecd302db6d6295c9107f3709e914d7dfa8736be22faa91ece6eb6fb
4
896
], "d", "Deep Q-learning replaces a tabular Q-function with a neural network approximation.", ), ExamQuestionSpec( 18, "neural-networks", "Which of the following statements is true about the vanishing gradient problem?", [ "The vanishing gradient probl...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
2b4e67f1fad8476cff1bbece15c76e55f7b4ef8fb31856a76269394da8784b14
5
896
$x = 10$. Which statement is correct?", [ "$y$ is in the range $(-\\frac{1}{4}, 0)$.", "$y$ is close to $x$.", "$y$ is in the range $(0, \\frac{1}{4})$.", "$y$ is $> 1$.", ], "c", "The sigmoid derivative is positive and at most 1/4. At inpu...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
0e5458e818472eacca23aa5f8cc82be7a7f15c6f6c50d9f5dae36816e6423cd9
6
896
no other regularization techniques can be applied.", ], "c", "Dropout randomly disables units during training. At inference time, the full network is used with the appropriate scaling behavior.", ), ExamQuestionSpec( 31, "drug-discovery", "Which of the following s...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
753077ce72839668735f52a0ad6c8de4026e0f26be49ecc78e096b9ae09d273a
7
896
: Path, prefix: str) -> None: if output_dir.exists(): shutil.rmtree(output_dir) output_dir.mkdir(parents=True, exist_ok=True) doc = fitz.open(pdf_path) for page_index in range(doc.page_count): page = doc.load_page(page_index) pix = page.get_pixmap(matrix=fitz.Matrix(2, 2), alpha...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
7c52ece1b8a3722238d1e05040235a39f2eb27cfecede708cd6f99508af2f602
8
896
group-a-page-{page_number:02}.png", "pageCount": 1, "pageNumber": page_number, "sourceQuality": "primary_capture", } ) return sources def build_exam_questions() -> list[dict]: questions = [] for spec in EXAM_2026: page = ((spec.n...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
5743e7b7be7e7015e597d94d66d2b45093c286874bda6b2bb267580614eceb95
9
896
} ], topic_id=topic_id, difficulty=infer_difficulty(stem), cognitive=infer_cognitive(stem), interaction=interaction, stem=stem, choices=choices, correct_indices=correct_indices, explanation=f"Correct according to...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
a09074007d0c12392509c2fccad6a6e812de8febc0b5f5401392b99908356fa3
10
896
get("_recurrenceCount", 0) < 2 ] fallback_historical.sort( key=lambda question: ( -int(question.get("_yieldScore", 0)), question["id"], ) ) selected.extend(fallback_historical[: 50 - len(selected)]) return [strip_private_fields...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
8587a4808ae3c59e901d528dae505997e1c3d82dd1006e57b4fd1ede241c7dda
11
896
^)]+\)\s*)+", text)) def normalize_section(text: str) -> str: text = re.sub(r"\s+", " ", text.strip()) text = re.sub(r"^UNIT \d+\s+", "", text, flags=re.IGNORECASE) if text == "VANISIHNG GRADIENTS": return "VANISHING GRADIENTS" if text == "SEL-ATTENTION": return "SELF-ATTENTION" re...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
21e8b6b440381a0c5437f85465fa9e4cee9006530768211c944a530a17bb330c
12
896
set[str] = set() for page_number, page in enumerate(reader.pages, start=1): text = page.extract_text() or "" if is_low_value_slide_page(text): continue for statement in fact_candidates_from_text(text): if statement in seen: continue seen.a...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
0168327c923da18d07c1e243f6f023dec85ba36b5972a079716471fc16a49da1
13
896
blocked = [ "copyright statement", "this material", "hands-on ai ii", "rainer dangl", "institute for machine learning", "content of unit", "literature", "figure", "in the following", "take a look", "this means that we", "we ...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
425944ea22f7267a18ff93625cdac57422bd9122d7a663ef71940ade7d9a5efc
14
896
, } for unit in UNIT_SLIDES ], ] for source in slide_sources: reader = PdfReader(str(ROOT / source["fileName"])) for page_index, page in enumerate(reader.pages, start=1): text = normalize_pdf_text(page.extract_text() or "") if not text: ...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
f5e46ae80255d784b2a5b5cdaece3a1c59b2c98d591cf493c3c88fd5e0f6504a
15
896
return "application" return "conceptual" def keywords_for_text(text: str) -> list[str]: lowered = text.lower() keywords = [] for topic_keywords in TOPIC_KEYWORDS.values(): for keyword in topic_keywords: if keyword in lowered: keywords.append(keyword) return uniq...
hands-on-ai
scripts/build-hands-on-ai-dataset.py
Python
44081c6d3e1fa18dcaea2cb490dbe63e545cada1f7ea7cd3c6afa7986487333f
16
386
#logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* .pnpm-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed *.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Cover...
htl-donaustadt-chatbot
.gitignore
Git Ignore
e4598e463b1540f45a36ba0252e98fe7eb03d621ac1af63244a14a6f14592e37
0
544
/// <reference types="next" /> /// <reference types="next/image-types/global" /> // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information.
htl-donaustadt-chatbot
next-env.d.ts
TypeScript
9269d492817e359123ac64c8205e5d05dab63d71a3a7a229e68b5d9a0e8150bf
0
62
/** @type {import('next').NextConfig} */ module.exports = { reactStrictMode: true, images: { remotePatterns: [ { protocol: 'https', hostname: 'avatars.githubusercontent.com', port: '', pathname: '**' } ] } }
htl-donaustadt-chatbot
next.config.js
JavaScript
13276343c42464d3601259da18b10236d702787bb638e5b96ae24e0643ad51d2
0
64
{ "name": "htl-donaustadt-chatbot", "version": "1.8.7", "author": "Julian S, Markus Wanke", "private": false, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@pinecone-database/pinecone": "^1.1.2", "@radix-ui/r...
htl-donaustadt-chatbot
package.json
JSON
642e20ec03dbc2d905139e8dd7e04df49af818441ce92323b2ba7f1c2f557738
0
791
<a href="https://www.htl-donaustadt.chat"> <img alt="Next.js 13 and app template Router-ready AI chatbot." src="https://www.htl-donaustadt.chat/og.png"> <h1 align="center">HTL Donaustadt AI Chatbot</h1> </a> <p align="center"> Ein AI Chatbot für die HTL Donaustadt. </p> <p align="center"> <a href="#features"...
htl-donaustadt-chatbot
README.md
Markdown
6df7f7993b13df975014da79b6dbca1b45e22dc6f78d02e7ff84cbf0d568df2b
0
511
const { fontFamily } = require("tailwindcss/defaultTheme"); /** @type {import('tailwindcss').Config} */ module.exports = { darkMode: ["class"], content: ["app/**/*.{ts,tsx}", "components/**/*.{ts,tsx}"], theme: { container: { center: true, padding: "2rem", screens: { "2xl": "1400px"...
htl-donaustadt-chatbot
tailwind.config.ts
TypeScript
3a84de83a6992a4aa5a4c343bbdcddb7b774ffbfb40dff5d917d1f2820333c6b
0
815
@tailwind base; @tailwind components; @tailwind utilities; @layer base { :root { --background: 0 10% 100%; --foreground: 240 10% 3.9%; --card: 0 0% 100%; --card-foreground: 240 10% 3.9%; --popover: 0 0% 100%; --popover-foreground: 240 10% 3.9%; --primary: 240 5.9% 10%; --primary-for...
htl-donaustadt-chatbot
app/globals.css
CSS
a11045cdeaaadec0967d5d8c21a163bdcc7e5b445384b257e6bcb11e3c330b1b
0
466
import { Metadata, Viewport } from 'next' import { Toaster } from 'react-hot-toast' import '@/app/globals.css' import { fontMono, fontSans } from '@/lib/fonts' import { cn } from '@/lib/utils' import { TailwindIndicator } from '@/components/tailwind-indicator' import { Providers } from '@/components/providers' import...
htl-donaustadt-chatbot
app/layout.tsx
TypeScript
d1dc85910f547bfa9e57d787519d6b835f0187d0c805d20fd585893088f84b42
0
592
import { nanoid } from '@/lib/utils' import { Chat } from '@/components/chat' export const runtime = 'edge' export default function IndexPage() { const id = nanoid() return <Chat id={id} /> }
htl-donaustadt-chatbot
app/page.tsx
TypeScript
dc4b5d336a1174eaf680d024324ddcf667a34a4b2a174131c93465f5cff8b1eb
0
55
import { MetadataRoute } from "next" export default function robots(): MetadataRoute.Robots { return { rules: { userAgent: "*", allow: "/", }, } }
htl-donaustadt-chatbot
app/robots.ts
TypeScript
fb4507e23a21dc791ef5ff66ee2e6374678d1a4153591267d804a5ab97da63e4
0
40
import { Message as VercelChatMessage, StreamingTextResponse } from 'ai' import { NextResponse } from 'next/server' import { PineconeStore } from 'langchain/vectorstores/pinecone' import { OpenAIEmbeddings } from 'langchain/embeddings/openai' import { ChatOpenAI } from 'langchain/chat_models/openai' import { RunnableSe...
htl-donaustadt-chatbot
app/api/chat/route.ts
TypeScript
137cbfcd4ce5020cf350c64a83ba685cbd71010386e250de638a330ee3fe5ed0
0
896
?? '') if (!pineconeIndex) { throw new Error('Pinecone index not found') } /* Create vector store instance from pinecone index */ const vectorStore = await PineconeStore.fromExistingIndex( new OpenAIEmbeddings({}), { pineconeIndex, textKey: 'text' } ) c...
htl-donaustadt-chatbot
app/api/chat/route.ts
TypeScript
a0edb9cbbeaf1989ffb2c2e021ab3c419db2540c741a02500150afa00ef44723
1
457
import { nanoid } from '@/lib/utils' import { Chat } from '@/components/chat' export const runtime = 'edge' export default function DataViewerPage() { return <p className="text-2xl text-center">NOT IMPLEMENTED...</p> }
htl-donaustadt-chatbot
app/data/page.tsx
TypeScript
9c5cf49c2ca3a6c63148f1d6ff807e539fade2a4895bcb6c84f581f853edd21a
0
63
'use client' import * as React from 'react' import { cn } from '@/lib/utils' import { useAtBottom } from '@/lib/hooks/use-at-bottom' import { Button, type ButtonProps } from '@/components/ui/button' import { IconArrowDown } from '@/components/ui/icons' export function ButtonScrollToBottom({ className, ...props }: Bu...
htl-donaustadt-chatbot
components/button-scroll-to-bottom.tsx
TypeScript
295e6de7c5b92d23c443a317f33fb32da0a7258ad7f99388001b5eff86c44894
0
225
import { type Message } from 'ai' import { Separator } from '@/components/ui/separator' import { ChatMessage } from '@/components/chat-message' export interface ChatList { messages: Message[] } export function ChatList({ messages }: ChatList) { if (!messages.length) { return null } return ( <div cla...
htl-donaustadt-chatbot
components/chat-list.tsx
TypeScript
84a0f035f0d18351e7c13527d201e3abcf883a838b04ba5a0dbfeafba6d6f1c1
0
163
// Inspired by Chatbot-UI and modified to fit the needs of this project // @see https://github.com/mckaywrigley/chatbot-ui/blob/main/components/Chat/ChatMessage.tsx import { Message } from 'ai' import remarkGfm from 'remark-gfm' import remarkMath from 'remark-math' import { cn } from '@/lib/utils' import { CodeBlock ...
htl-donaustadt-chatbot
components/chat-message.tsx
TypeScript
0a75875b5d1e750396804ee67a5639bbc295e2d9b96b69bdb4059e4346355d0a
0
616
import { type UseChatHelpers } from 'ai/react' import { Button } from '@/components/ui/button' import { PromptForm } from '@/components/prompt-form' import { ButtonScrollToBottom } from '@/components/button-scroll-to-bottom' import { IconRefresh, IconStop } from '@/components/ui/icons' import { FooterText } from '@/co...
htl-donaustadt-chatbot
components/chat-panel.tsx
TypeScript
a589d401dadffa6095398792edc4fdc2efd14eff73fbce2fd6a36dd76cd1c21f
0
467
'use client' import * as React from 'react' import { useInView } from 'react-intersection-observer' import { useAtBottom } from '@/lib/hooks/use-at-bottom' interface ChatScrollAnchorProps { trackVisibility?: boolean } export function ChatScrollAnchor({ trackVisibility }: ChatScrollAnchorProps) { const isAtBotto...
htl-donaustadt-chatbot
components/chat-scroll-anchor.tsx
TypeScript
5d29c511970e1dd9f575329e9dcd757663230c0cb80b1a009d3247e54d2d8df0
0
170
'use client' import { useChat, type Message } from 'ai/react' import { cn } from '@/lib/utils' import { ChatList } from '@/components/chat-list' import { ChatPanel } from '@/components/chat-panel' import { EmptyScreen } from '@/components/empty-screen' import { ChatScrollAnchor } from '@/components/chat-scroll-anchor...
htl-donaustadt-chatbot
components/chat.tsx
TypeScript
7a2ef28c7cff9a5533e6e4980352e0104ad2104919c5372ac868afcf4ac33aa4
0
398
import { UseChatHelpers } from 'ai/react' import { Button } from '@/components/ui/button' import { ExternalLink } from '@/components/external-link' import { IconArrowRight } from '@/components/ui/icons' import { ThemeToggle } from './theme-toggle' const exampleMessages = [ { heading: 'Erzähle mir etwas über die...
htl-donaustadt-chatbot
components/empty-screen.tsx
TypeScript
b40ac27a81767ecca699b171bd98bcec7067e1857691b9ec7cd23a86a876c2b5
0
605
import React from 'react' import { cn } from '@/lib/utils' import { ExternalLink } from '@/components/external-link' export function FooterText({ className, ...props }: React.ComponentProps<'p'>) { return ( <p className={cn( 'px-2 text-center text-xs leading-normal text-muted-foreground', ...
htl-donaustadt-chatbot
components/footer.tsx
TypeScript
4ff1a29dfb4aabcfb4785607077ee6c687bc2288ed22fa7ec152abbb0f1c4c3e
0
106
import * as React from 'react' import Link from 'next/link' import { cn } from '@/lib/utils' // import { auth } from '@/auth' // import { clearChats } from '@/app/actions' import { Button, buttonVariants } from '@/components/ui/button' // import { Sidebar } from '@/components/sidebar' // import { SidebarList } from '@...
htl-donaustadt-chatbot
components/header.tsx
TypeScript
2636fb970408ca09c23bb2a0e61e368f2e1f17969f039700b01b5db0f047683d
0
441
import { UseChatHelpers } from 'ai/react' import * as React from 'react' import Textarea from 'react-textarea-autosize' import { Button, buttonVariants } from '@/components/ui/button' import { IconArrowElbow, IconPlus } from '@/components/ui/icons' import { Tooltip, TooltipContent, TooltipTrigger } from '@/compo...
htl-donaustadt-chatbot
components/prompt-form.tsx
TypeScript
e8018ac5bee84dd3adafd5783102ec7decbe1fa5927121c5832dc1db6fd9fa94
0
519
'use client' import * as React from 'react' import { ThemeProvider as NextThemesProvider } from 'next-themes' import { ThemeProviderProps } from 'next-themes/dist/types' import { TooltipProvider } from '@/components/ui/tooltip' export function Providers({ children, ...props }: ThemeProviderProps) { return ( <N...
htl-donaustadt-chatbot
components/providers.tsx
TypeScript
007c4b55f6cbfedb40908628fa62c53ea4265c3cf485dbf9e1af1026a0c9e32c
0
95
'use client' import * as React from 'react' import { useTheme } from 'next-themes' import { Button } from '@/components/ui/button' import { IconMoon, IconSun } from '@/components/ui/icons' export function ThemeToggle() { const { setTheme, theme } = useTheme() const [_, startTransition] = React.useTransition() ...
htl-donaustadt-chatbot
components/theme-toggle.tsx
TypeScript
ab1f0b0d08d1b011dc32f28d3a9584d3c82fa07678d84055e22bc7d59c5f1d76
0
196
'use client' import * as React from 'react' import * as DialogPrimitive from '@radix-ui/react-dialog' import { cn } from '@/lib/utils' import { IconClose } from '@/components/ui/icons' const Dialog = DialogPrimitive.Root const DialogTrigger = DialogPrimitive.Trigger const DialogPortal = ({ className, children,...
htl-donaustadt-chatbot
components/ui/dialog.tsx
TypeScript
71aac6f1305e6106b2f0164b2764f6eb65ad7873a7f9934730d7a3b89dc16d50
0
896
> )) DialogTitle.displayName = DialogPrimitive.Title.displayName const DialogDescription = React.forwardRef< React.ElementRef<typeof DialogPrimitive.Description>, React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description> >(({ className, ...props }, ref) => ( <DialogPrimitive.Description ref={ref} ...
htl-donaustadt-chatbot
components/ui/dialog.tsx
TypeScript
5a892055bee37a998de4f2d084b366d0b4044f6e4f5398a231247ece15f27996
1
118
'use client' import * as React from 'react' import { cn } from '@/lib/utils' function IconNextChat({ className, inverted, ...props }: React.ComponentProps<'svg'> & { inverted?: boolean }) { const id = React.useId() return ( <svg viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.or...
htl-donaustadt-chatbot
components/ui/icons.tsx
TypeScript
3f3f9ab4853a23897ea5630fd53355e6f6a405d40df6d77a2491184c083f213b
0
896
.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm...
htl-donaustadt-chatbot
components/ui/icons.tsx
TypeScript
873a49f56d6761858f0e33e23fcd3be8023e4c5595b6b6076b9455587ee4e1d4
1
896
0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1....
htl-donaustadt-chatbot
components/ui/icons.tsx
TypeScript
0d9c076d02f2a1b5d08b548b5d77b8b327dcc3b4d3290b65b8b306b104dcf69a
2
896
} function IconPlus({ className, ...props }: React.ComponentProps<'svg'>) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <path d="M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-8...
htl-donaustadt-chatbot
components/ui/icons.tsx
TypeScript
14aaac778ed3fe2b7e791759b08375488ff5bbf159b128aedb7ff21b88fe9288
3
896
0Zm48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Z" /> </svg> ) } function IconRefresh({ className, ...props }: React.ComponentProps<'svg'>) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" className={cn('h-4 w-4', className)} {...props} ...
htl-donaustadt-chatbot
components/ui/icons.tsx
TypeScript
2e68bba29b48bea6654e224e547239d85832cb6c5f83292f3bb9c71ae9ac35aa
4
896
React.ComponentProps<'svg'>) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <path d="M120 40V16a8 8 0 0 1 16 0v24a8 8 0 0 1-16 0Zm72 88a64 64 0 1 1-64-64 64.07 64.07 0 0 1 64 64Z...
htl-donaustadt-chatbot
components/ui/icons.tsx
TypeScript
84ef7dfe4c76e7d246e5855870da4f5d1189ec9873aa4f74dc70b999c0f6effe
5
896
://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" className={cn('h-4 w-4', className)} {...props} > <path d="M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 ...
htl-donaustadt-chatbot
components/ui/icons.tsx
TypeScript
87c085efda15e062623dd920d70a77fff4eb8e82da2048b61023e62bb993715a
6
896
svg" fill="currentColor" className={cn('h-4 w-4', className)} viewBox="0 0 256 256" {...props} > <path d="M224 104a8 8 0 0 1-16 0V59.32l-66.33 66.34a8 8 0 0 1-11.32-11.32L196.68 48H152a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8Zm-40 24a8 8 0 0 0-8 8v72H48V80h72a8 8 0 0 0 0-16H48a16 16 0 0 0-16 16...
htl-donaustadt-chatbot
components/ui/icons.tsx
TypeScript
7b4f848851461bda3a68863782edc43b9f0aa396d8e200d654205ccdf961616e
7
400
'use client' import * as React from 'react' import * as SheetPrimitive from '@radix-ui/react-dialog' import { cn } from '@/lib/utils' import { IconClose } from '@/components/ui/icons' const Sheet = SheetPrimitive.Root const SheetTrigger = SheetPrimitive.Trigger const SheetClose = SheetPrimitive.Close const SheetP...
htl-donaustadt-chatbot
components/ui/sheet.tsx
TypeScript
bec1ff3132a1bd462e5cd3c3568eec4da148cc44cb5957e838f812234404d421
0
896
<typeof SheetPrimitive.Description> >(({ className, ...props }, ref) => ( <SheetPrimitive.Description ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} /> )) SheetDescription.displayName = SheetPrimitive.Description.displayName export { Sheet, SheetTrigger, SheetClos...
htl-donaustadt-chatbot
components/ui/sheet.tsx
TypeScript
3e26e76236f78c3c0f950ebbecff1f95db8ce068983034df251addc8a0e07f4b
1
88
"use client" import * as React from "react" import * as SwitchPrimitives from "@radix-ui/react-switch" import { cn } from "@/lib/utils" const Switch = React.forwardRef< React.ElementRef<typeof SwitchPrimitives.Root>, React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> >(({ className, ...props }, ref) =>...
htl-donaustadt-chatbot
components/ui/switch.tsx
TypeScript
2b441c2680c1576442cb900cb5266d812e60943b02a2b00ac883d671625ecf81
0
308
import { IconGitHub, IconHTL } from '@/components/ui/icons' import { SiteConfig } from 'types' export const siteConfig: SiteConfig = { name: 'HTL Donaustadt - AI Chatbot', description: 'AI Chatbot für die HTL Donaustadt', url: 'https://www.htl-donaustadt.chat', links: [ { name: 'HTL Donaustadt', ...
htl-donaustadt-chatbot
config/config.ts
TypeScript
f9834c418f21d89c809862f02a7e9900da9db27835e8b1778ed2d3139a2a687c
0
167
import { type AIStreamCallbacksAndOptions, createCallbacksTransformer } from 'ai' export function LangChainStream(callbacks?: AIStreamCallbacksAndOptions) { const stream = new TransformStream() const writer = stream.writable.getWriter() const runs = new Set() const handleError = async (e: Error, runId: s...
htl-donaustadt-chatbot
lib/lang-chain-stream.ts
TypeScript
a10135601a397256b265de1eb2cc095997ca45ffbad1f397f25a17311cc2b7b5
0
499
import { type ClassValue, clsx } from 'clsx' import { customAlphabet } from 'nanoid' import { twMerge } from 'tailwind-merge' export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } export const nanoid = customAlphabet( '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 7 ) /...
htl-donaustadt-chatbot
lib/utils.ts
TypeScript
20b8043baaa9d003134d7993297880fbf72f5374a030b51097c9007dc48caacf
0
236
import * as React from 'react' export function useAtBottom(offset = 0) { const [isAtBottom, setIsAtBottom] = React.useState(false) React.useEffect(() => { const handleScroll = () => { setIsAtBottom( window.innerHeight + window.scrollY >= document.body.offsetHeight - offset ) ...
htl-donaustadt-chatbot
lib/hooks/use-at-bottom.ts
TypeScript
5ec0f305206a0d1f53a64df240d490151fa9013dbd52b12c9e1e64fdc5ad73ea
0
112
{ "name": "HTL Donaustadt AI Chatbot", "short_name": "HTL22 Chatbot", "icons": [ { "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" }, { "src": "/android-chrome-512x512.png", "sizes": "512x512", ...
htl-donaustadt-chatbot
public/site.webmanifest
Web Manifest
c434ca77478956768fe3df8bdb40d59b21ade4bdf00ff03dc9942ba57e183631
0
127
export type SiteConfig = { name: string description: string url: string links?: LinkConfig[] } export type LinkConfig = { name: string shortName?: string url: string variant?: | 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link' | null | undefined c...
htl-donaustadt-chatbot
types/index.d.ts
TypeScript
3c6add2f6a81197b04d44b68e331e4205889283a414dfd0b8756154c4c51aa19
0
76
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> html, body { height: 100%; margin: 0; padding: 0; border: 0; } body { ...
html-starter
index.html
HTML
7722c47d93039dec7f85dfccf9088c7b7d18faa1027d9e4e7edb77f191f3c12b
0
174
import { next } from '@vercel/edge'; export default function middleware(req) { return next({ headers: { 'Referrer-Policy': 'origin-when-cross-origin', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'X-DNS-Prefetch-Control': 'on', 'Strict-Transport-Security': ...
html-starter
middleware.js
JavaScript
fe4c94ca4463247a5edd01c27c8db5b63d9243b5ba6358ef62b223c24c6b4580
0
109
{ "private": true, "dependencies": { "@vercel/edge": "^0.1.2" } }
html-starter
package.json
JSON
b86eefe3ff7229d0783bc3c53daef3bdac964dbe60a9ef67ae40c521219f9c78
0
27
--- name: HTML Starter slug: html-starter-with-analytics description: HTML5 template with analytics and advanced routing configuration. deployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/html&project-name=html relatedTemplates: - nextjs-boilerplate --- # HTM...
html-starter
README.md
Markdown
e432b1a2c93b0557ed95754be5994bf9c4f037edbd17f07165b5bc2394567345
0
199
{ "extends": [ "next/core-web-vitals", "plugin:import/recommended", "plugin:import/typescript", "prettier", "plugin:tailwindcss/recommended" ], "plugins": ["tailwindcss"], "rules": { "tailwindcss/no-custom-classname": "off", "tailwindcss/classnames-order": "off" }, "settings": { ...
ifg-agentic
.eslintrc.json
JSON
f7dcbb73e7748b2a78c291b409aeecb4bfb8d47f2cd5fbc29c0c9ed0dd254fe3
0
143
# Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* .pnpm-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed *.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov #...
ifg-agentic
.gitignore
Git Ignore
8381a31c2a56690ba395653a6cd71b6f378683e0925dc9eea595c853c47757fe
0
529
{ "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", "extends": ["ultracite"], "files": { "includes": [ "**/*", "!components/ui", "!lib/utils.ts", "!hooks/use-mobile.ts" ] }, "linter": { "rules": { "suspicious": { /* Needs more work to fix *...
ifg-agentic
biome.jsonc
JSON
313a6ee30dbb3ffedfc84fd02499612c473b7539447bec4d7d0c7a2bdbc74db5
0
513
{ "$schema": "https://ui.shadcn.com/schema.json", "style": "default", "rsc": true, "tsx": true, "tailwind": { "config": "tailwind.config.ts", "css": "app/globals.css", "baseColor": "zinc", "cssVariables": true, "prefix": "" }, "iconLibrary": "lucide", "aliases": { "components": "...
ifg-agentic
components.json
JSON
67543bf3ab584dd5a1f32b4fbd2bf8cf719b3c836004c1c7cf25686856daaf7e
0
194
fragdenstaat.gv.at – eine digitale Workflow-Lösung für transparente und effiziente IFG-, IWG- & DZG-Anfragen 1. Einleitung 2 1.1 Hintergrund: Paradigmenwechsel in der Informationsfreiheit – IFG, IWG und DZG als neue Grundlagen für den Datenzugang 2 Bedeutung für verschiedene rechtliche Rahmenwerke 3 1.2 Ziel des Konzep...
ifg-agentic
konzept.txt
Text
13cf36c3cbb8c9acc2c07eeca76e72b3bcc4629897e23cfbf1de608f04fc11c3
0
896
eine digitale Infrastruktur, die es ermöglicht, Anfragen effizient zu bearbeiten bzw. weiterzuleiten, Fristen einzuhalten und bereits veröffentlichte Informationen leicht auffindbar zu machen. 2. Informationsweiterverwendungsgesetz (IWG): Open Data und kommerzielle Nutzung von Verwaltungsdaten ○ Das IWG stellt die Umse...
ifg-agentic
konzept.txt
Text
e82b94725934a61afc1949b2b11a444a30486c2d2d494f203bf9d6f352100153
1
896
bürgerfreundliches System schafft, das die Umsetzung der Informationsfreiheit maßgeblich unterstützt. ● Synergien nutzt und durch Automatisierung Kosten spart. ● Ein Best-Practice-Beispiel für eine digitale Verwaltungslösung schafft, das Modellcharakter für weitere E-Government-Services haben kann. ● politisch Verantwo...
ifg-agentic
konzept.txt
Text
c752756baa224d6d60d45163791d0125228f784ba4246f183dff2790740a4e61
2
896
erinnert, um Verzögerungen zu vermeiden. 3.5 Nahtlose Integration in bestehende Verwaltungssysteme "fragdenstaat.gv.at" soll mit bestehenden Systemen wie ELAK kompatibel sein, um Medienbrüche zu vermeiden und eine reibungslose Bearbeitung von Anfragen innerhalb der Verwaltung sicherzustellen. 4. Vergleich mit Best Prac...
ifg-agentic
konzept.txt
Text
9ea5853d54e9eb8953880dc65339b462de8cde6e2a3f7a95398068480ca5b418
3
896
Rollout und Evaluierung Nach erfolgreichen Tests erfolgt der schrittweise Rollout in der gesamten Verwaltung. Eine kontinuierliche Evaluierung stellt sicher, dass die Plattform den Anforderungen entspricht und laufend weiterentwickelt wird. 8. Fazit und Handlungsempfehlungen 8.1 Zusammenfassung der Vorteile Die Einführ...
ifg-agentic
konzept.txt
Text
8254c79af80b1f7d8feabee391f149a8d3db39a73aa94aedb0c0b5650ac9525f
4
335
import { NextResponse, type NextRequest } from 'next/server'; import { getToken } from 'next-auth/jwt'; import { guestRegex, isDevelopmentEnvironment } from './lib/constants'; export async function middleware(request: NextRequest) { const { pathname } = request.nextUrl; /* * Playwright starts the dev server an...
ifg-agentic
middleware.ts
TypeScript
212fcc8b2990e5380a880bc852c6cebb37a44d16d9802a0153400ba7874df42e
0
414
# 🎉 Migration Complete - piveau hub-repo API ## ✅ All Tools Successfully Migrated! All AI tools have been completely migrated from the CKAN API to the **piveau hub-repo API** (DCAT-AP compliant). ## 📊 Summary ### Tools Migrated - **30+ tools** created/rewritten - **40+ files** changed - **9 legacy files** deleted...
ifg-agentic
MIGRATION_COMPLETE.md
Markdown
543e63c0bc4b6048f68d0530219ef2c2c181c4d52e119099988986c237af4e48
0
896
` | `getDatasetDetails()` | | `/action/organization_list` | `/catalogues` | `listCatalogues()` | | `/action/organization_show` | `/catalogues/{id}` | `getCatalogue()` | | `/action/resource_show` | `/distributions/{id}` | `getDistribution()` | ## ✅ Verification ### All Old Imports Removed ```bash # Verified: No old im...
ifg-agentic
MIGRATION_COMPLETE.md
Markdown
aa2cff4310fc58cf4d299f762ca02d67da0cb526a3b9ef109767401d21ec3834
1
896
Start with QUICKSTART.md - Reference README.md as needed - Check MIGRATION.md for detailed changes 4. ✅ **Monitor Performance** - Check API response times - Verify data formats - Test error handling ## 🏆 Success Metrics - ✅ 100% of tools migrated - ✅ 100% of old files removed - ✅ 100% OpenAPI complia...
ifg-agentic
MIGRATION_COMPLETE.md
Markdown
78d5aa733cbeb0b4e37b92b7284af7b8d697127cfbc49d9fef756880d2ecbbfa
2
458
import type { NextConfig } from 'next'; const nextConfig: NextConfig = { experimental: { ppr: true, }, images: { remotePatterns: [ { hostname: 'avatar.vercel.sh', }, { hostname: 'snyzk9sqnqm7uraj.public.blob.vercel-storage.com' }, { hostname: 'vercel....
ifg-agentic
next.config.ts
TypeScript
ca6d9b7ceac5e245d1254111634e37964a1f6a06f9feb730d4bf655a6c7713f1
0
82
## /drafts/datasets: get: description: This function is reserved for internal use only and is not part of our public API offerings. You must be authorized to retrieve drafts of datasets. As an authorized user, you make a GET request to the specified API endpoint URL with the resource path "/drafts/datasets...
ifg-agentic
openapi_schema.yaml
YAML
a703b383beb98f202512affadb38c0f4254048de5083351f1705dffa3c9fd5ba
9
896
the newly provided information. If the ID is new, a new draft will be created. summary: Create or Update a dataset draft operationId: createOrUpdateDatasetDraft tags: - Drafts security: - ApiKeyAuth: [ ] - BearerAuth: [ ] parameters: - name: catalogue ...
ifg-agentic
openapi_schema.yaml
YAML
1aff8d0b4d3de7ba15d2bd9a1740d6a018e81144abba92c21511e9dc7559b88c
10
896
, the response contains the headers of the specified vocabulary. summary: Head get a vocabulary operationId: headGetVocabulary tags: - Vocabularies responses: '200': description: Headers of get a vocabulary '404': description: Not Found put: ...
ifg-agentic
openapi_schema.yaml
YAML
aad607fe0d78c21ef7dfcfb3bcc638cfdf2474bfbdac026f806d9dbb1c4a264f
12
896
404': description: Dataset not found '422': description: Unprocessable Entity, details in the response body. content: application/json: schema: type: object /identifiers/datasets/{datasetId}/eligibility: parameters: - $ref: '#/c...
ifg-agentic
openapi_schema.yaml
YAML
8ed58310b6c0fa4496b8715b576ce685ff6a838f8e20a48ada7e0fab0a306f64
13
896
required: true content: application/rdf+xml: schema: type: string application/n-triples: schema: type: string application/trig: schema: type: string text/turtle: schema: ...
ifg-agentic
openapi_schema.yaml
YAML
a0a6069e2784b53fb20eb0880c5fee2f810a6dd5cfb92df1c23b12452a3d27a7
14
896
If your service is behind a proxy, this might not work correctly. Find out more in the documentation: https://doc.piveau.eu/admin-guide/hub-repo-admin-guide/" schema: type: boolean default: false UsePagedCollection: name: usePagedCollection in: query description: "Set to 'tr...
ifg-agentic
openapi_schema.yaml
YAML
43a0c6356e1fab3deecc74c043642a820563a46d84793cf789e6eefc40db32d3
15
532
{ "name": "ifg-agentic", "version": "0.0.1", "private": true, "scripts": { "dev": "next dev --turbo", "build": "tsx lib/db/migrate && next build", "start": "next start", "lint": "next lint && biome lint --write --unsafe", "lint:fix": "next lint --fix && biome lint --write --unsafe", "for...
ifg-agentic
package.json
JSON
3576ac039843c596ef775344a1fe9bc8bb1c0dbc5dde26d1dfc674b618671f8f
0
896
import { defineConfig, devices } from '@playwright/test'; /** * Read environment variables from file. * https://github.com/motdotla/dotenv */ import { config } from 'dotenv'; config({ path: '.env.local', }); /* Use process.env.PORT by default and fallback to port 3000 */ const PORT = process.env.PORT || 3000; ...
ifg-agentic
playwright.config.ts
TypeScript
49d0d48e43d48e442343058c42564b71c4c23e14d9d9b5b66da65ae8e667deae
0
771
/** @type {import('postcss-load-config').Config} */ const config = { plugins: { '@tailwindcss/postcss': {}, }, }; export default config;
ifg-agentic
postcss.config.mjs
JavaScript
3aac0d047d7dd505eea362c918e2ddd0436428682c5de5cb18feda70d46aa5cb
0
46
<div align="center"> <img src="public/thumbnail.png" alt="IFG Agentic" width="100%" height="100%" style="border-radius: 10px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);"> <a name="readme-top"></a> # IFG Agentic Entdecke, Analysiere und Visualisiere österreichische Datensätze von **[data.gv.at][datagvat_url]**<br/>–...
ifg-agentic
README.md
Markdown
4c1bce9500b685abe16460c7828c2ac4367a87b94a13877f5dab79b120057e97
0
896
.shields.io/badge/React-19-61DAFB?style=for-the-badge&logo=react&logoColor=black [license_badge]: https://img.shields.io/badge/License-MIT-success?style=for-the-badge [repo_badge]: https://img.shields.io/badge/REPOSITORY-gray?style=for-the-badge [issues_badge]: https://img.shields.io/badge/ISSUES-red?style=for-the-badg...
ifg-agentic
README.md
Markdown
1adca9c51553e39dbc916db44ca48b729dc176d9642744f935a23877fdb1dbdf
1
526
<div align="center"> <img src="public/thumbnail.png" alt="IFG Agentic" width="100%" height="100%" style="border-radius: 10px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);"> <a name="readme-top"></a> # IFG Agentic Discover, Analyze and Visualize Austrian datasets from **[data.gv.at][datagvat_url]**<br/>– entirely in y...
ifg-agentic
README_EN.md
Markdown
e0c3419b3961c8d44253ab33f89d02ba743d69c6ea8a8743cc2f77f5a4bf65ce
0
896
openapi: 3.0.0 servers: - url: https://www.data.gv.at/katalog/api/3 info: description: > data.gv.at API Documentation version: 1.0.0 title: data.gv.at API contact: email: info@data.gv.at license: name: CC BY 4.0 url: https://creativecommons.org/licenses/by/4.0/ tags: - name: datasets d...
ifg-agentic
schema.yml
YAML
833ca4c1f806843d87a635db5f2f1a2da8a81c3e12ea3c4598d5ed85e5241273
0
896