Skip to content

Commit 399beec

Browse files
authored
Merge pull request #51 from albegosu/feat/excel-sourcetype
feat(sourcetypes): add excel to sourcetypes files and docs about comm…
2 parents 0181c7e + 23dac63 commit 399beec

13 files changed

Lines changed: 261 additions & 5 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: Bug report
3+
about: Something isn't working as expected
4+
title: "fix: "
5+
labels: bug
6+
assignees: ""
7+
---
8+
9+
## Description
10+
11+
A clear, concise description of the bug.
12+
13+
## Steps to Reproduce
14+
15+
1. Go to '...'
16+
2. Click on '...'
17+
3. See error
18+
19+
## Expected Behavior
20+
21+
What you expected to happen.
22+
23+
## Actual Behavior
24+
25+
What actually happened. Include screenshots if helpful.
26+
27+
## Environment
28+
29+
| Field | Value |
30+
|---|---|
31+
| Node.js version | `node -v` |
32+
| pnpm version | `pnpm -v` |
33+
| OS | e.g. macOS 14, Ubuntu 22.04 |
34+
| PostgreSQL version | e.g. 16 |
35+
| pgvector version | e.g. 0.7.0 |
36+
| Deployment | local dev / Docker / self-hosted |
37+
38+
## Logs
39+
40+
<details>
41+
<summary>Relevant logs (browser console, server output, Docker logs)</summary>
42+
43+
```
44+
paste logs here
45+
```
46+
47+
</details>
48+
49+
## Additional Context
50+
51+
Anything else that might help — related issues, recent changes, workarounds tried.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
blank_issues_enabled: false
2+
3+
contact_links:
4+
- name: Ask a question
5+
url: https://github.com/albegosu/hypar/discussions
6+
about: Not a bug or feature? Start a discussion — questions, ideas, and show-and-tell welcome.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Feature request
3+
about: Propose an improvement or new capability
4+
title: "feat: "
5+
labels: enhancement
6+
assignees: ""
7+
---
8+
9+
## Problem Statement
10+
11+
What problem does this solve? Who runs into it, and when?
12+
_Example: "As someone uploading large PDFs, I have no visibility into ingestion progress..."_
13+
14+
## Proposed Solution
15+
16+
Describe the feature you'd like to see. Be as concrete as you can — UI, API shape, config knob, whatever is relevant.
17+
18+
## Alternatives Considered
19+
20+
Other approaches you thought about and why you ruled them out (or didn't).
21+
22+
## Additional Context
23+
24+
Links, mockups, related issues, prior art, or anything else that helps frame the idea.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Type of Change
2+
3+
<!-- Check all that apply -->
4+
5+
- [ ] Bug fix
6+
- [ ] New feature
7+
- [ ] Documentation
8+
- [ ] Refactor
9+
- [ ] Chore (deps, config, tooling)
10+
11+
## Description
12+
13+
What does this PR do, and why? Keep it short — the commit history fills in the details.
14+
15+
## Related Issue
16+
17+
Closes #<!-- issue number, or remove this line if none -->
18+
19+
## Testing Checklist
20+
21+
- [ ] `pnpm ci:check` passes locally (lint → typecheck → tests → eval → build)
22+
- [ ] New or updated tests cover the change (if applicable)
23+
- [ ] Docs updated if behavior or config changed
24+
25+
## Screenshots / Video
26+
27+
<!-- For UI changes, drop a before/after screenshot or a short screen recording. Delete this section if not applicable. -->

CODE_OF_CONDUCT.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
We — contributors and maintainers — pledge to make participation in hypar a welcoming, harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity, level of experience, nationality, personal appearance, race, religion, or sexual identity.
6+
7+
## Our Standards
8+
9+
**Expected behavior:**
10+
- Use welcoming, inclusive language
11+
- Be respectful of differing viewpoints and experience levels
12+
- Accept constructive feedback gracefully
13+
- Focus on what is best for the community and the project
14+
15+
**Unacceptable behavior:**
16+
- Harassment, insults, or derogatory comments in any form
17+
- Personal or political attacks
18+
- Publishing others' private information without consent
19+
- Any conduct that would reasonably be considered inappropriate in a professional setting
20+
21+
## Enforcement
22+
23+
Instances of unacceptable behavior may be reported to **alberto@resiz.es**. All reports will be reviewed confidentially and handled promptly. Maintainers are obligated to maintain confidentiality regarding the reporter.
24+
25+
Violations may result in a temporary or permanent ban from the project.
26+
27+
## Attribution
28+
29+
This Code of Conduct is adapted from the [Contributor Covenant v2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).

i18n/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"fieldType": "type",
123123
"save": "save document",
124124
"dropZone": "drag and drop files here, or click to browse",
125-
"supports": "supports: .txt, .md, .pdf",
125+
"supports": "supports: .txt, .md, .pdf, .xls, .xlsx",
126126
"selectFile": "select file",
127127
"uploadFile": "upload file",
128128
"saving": "Saving…",

i18n/locales/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"fieldType": "tipo",
123123
"save": "guardar documento",
124124
"dropZone": "arrastra archivos aquí, o haz clic para buscar",
125-
"supports": "soporta: .txt, .md, .pdf",
125+
"supports": "soporta: .txt, .md, .pdf, .xls, .xlsx",
126126
"selectFile": "seleccionar archivo",
127127
"uploadFile": "subir archivo",
128128
"saving": "Guardando…",

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default defineNuxtConfig({
7777
chunkOverlap: Number(process.env.CHUNK_OVERLAP ?? 60),
7878
chunkStrategy: process.env.CHUNK_STRATEGY ?? 'sentence-aware',
7979
maxDocSizeMb: Number(process.env.MAX_DOC_SIZE_MB ?? 10),
80-
allowedFormats: process.env.ALLOWED_FORMATS ?? 'pdf,md,txt',
80+
allowedFormats: process.env.ALLOWED_FORMATS ?? 'pdf,md,txt,xls,xlsx',
8181
// Step 5 - Search
8282
searchTopK: Number(process.env.SEARCH_TOP_K ?? 5),
8383
searchThreshold: Number(process.env.SEARCH_THRESHOLD ?? 0.2),

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"vue-i18n": "^10.0.8",
5555
"vue-router": "^4.4.5",
5656
"workflow": "^4.2.4",
57+
"xlsx": "^0.18.5",
5758
"zod": "^3.22.4"
5859
},
5960
"devDependencies": {

pages/documents/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ function getIconForType(type) {
147147
markdown: 'i-heroicons-document',
148148
pdf: 'i-heroicons-document-arrow-down',
149149
web: 'i-heroicons-globe-alt',
150+
spreadsheet: 'i-heroicons-table-cells',
150151
}
151152
return icons[type] || 'i-heroicons-document'
152153
}

0 commit comments

Comments
 (0)