-
Notifications
You must be signed in to change notification settings - Fork 26
merger - full Cuong/update2024 legal2008txt <after demo with Client pre-deploy1.1> #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DoanNgocCuong
wants to merge
8
commits into
phatjkk:main
Choose a base branch
from
DoanNgocCuong:cuong/update2024_legal2008txt
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
merger - full Cuong/update2024 legal2008txt <after demo with Client pre-deploy1.1> #1
DoanNgocCuong
wants to merge
8
commits into
phatjkk:main
from
DoanNgocCuong:cuong/update2024_legal2008txt
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…olab chứ ko phải 12.3 + 2. Lỗi chuyển sang Transformer hoặc Huggingface qua local thì bị bug thư viện ... cài hoài ko được +++ CHƯA THỬ API HUGGINGFACE
…h fix xong và run port ngork tunelling : https://www.facebook.com/profile.php?id=61555602325630
1. FIX CORS MÃI, dù vẫn nhớ là cần check POSTMAN crul trước mà ko check
2. Sau check thì ra lỗi đường dẫn
----------------------
// fetch("https://toad-vast-civet.ngrok-free.app/rag/" + sourceData + "?q=" + promptInput,
// Cuong thay base crul mới
fetch("https://briefly-knowing-treefrog.ngrok-free.app/rag/" + sourceData + "?q=" + promptInput,
======
Với thông tin này, bạn nên sử dụng URL ngrok mới để thực hiện các yêu cầu. Hãy thử lại với URL ngrok chính xác:
1. **Test endpoint root**:
```bash
curl https://briefly-knowing-treefrog.ngrok-free.app/
```
2. **Test endpoint RAG với source "nttu"**:
```bash
curl "https://briefly-knowing-treefrog.ngrok-free.app/rag/nttu?q=xin%20chao"
```
3. **Test với headers để tránh lỗi ngrok**:
```bash
curl -H "ngrok-skip-browser-warning: 69420" "https://briefly-knowing-treefrog.ngrok-free.app/rag/nttu?q=xin%20chao"
```
4. **Test với source "wiki"**:
```bash
curl -H "ngrok-skip-browser-warning: 69420" "https://briefly-knowing-treefrog.ngrok-free.app/rag/wiki?q=xin%20chao"
```
5. **Xem response đầy đủ với headers**:
```bash
curl -v -H "ngrok-skip-browser-warning: 69420" "https://briefly-knowing-treefrog.ngrok-free.app/rag/nttu?q=xin%20chao"
```
Hãy thử các lệnh này và xem kết quả. Nếu vẫn gặp lỗi, hãy kiểm tra lại cấu hình endpoint trong code backend.
… đáng lẽ ra phải là TEXT mà nó lộn xà lộn xộn ký tự
{
"detail": "An error occurred: 'VectorStoreRetriever' object has no attribute 'embeddings'"
}
Check database thì thấy chỗ page_content đáng lẽ ra phải là TEXT mà nó lộn xà lộn xộn ký tự
========
Với thông tin này, bạn nên sử dụng URL ngrok mới để thực hiện các yêu cầu. Hãy thử lại với URL ngrok chính xác:
1. **Test endpoint root**:
```bash
curl https://briefly-knowing-treefrog.ngrok-free.app/
```
2. **Test endpoint RAG với source "nttu"**:
```bash
curl "https://briefly-knowing-treefrog.ngrok-free.app/rag/nttu?q=xin%20chao"
```
3. **Test với headers để tránh lỗi ngrok**:
```bash
curl -H "ngrok-skip-browser-warning: 69420" "https://briefly-knowing-treefrog.ngrok-free.app/rag/nttu?q=xin%20chao"
```
4. **Test với source "wiki"**:
```bash
curl -H "ngrok-skip-browser-warning: 69420" "https://briefly-knowing-treefrog.ngrok-free.app/rag/wiki?q=xin%20chao"
```
5. **Xem response đầy đủ với headers**:
```bash
curl -v -H "ngrok-skip-browser-warning: 69420" "https://briefly-knowing-treefrog.ngrok-free.app/rag/nttu?q=xin%20chao"
```
Hãy thử các lệnh này và xem kết quả. Nếu vẫn gặp lỗi, hãy kiểm tra lại cấu hình endpoint trong code backend.
…: Token Huggingface của Clinet bị sai /bug DẪN ĐẾN KO CHUNKING ĐƯỢC MÃI MỚI TÌM RA BUG NÀY
…torStoreRetriever --- CLAUDE3.5 WEB # FIX CURSOR CŨNG ĐỀ XUẤT CÁCH: BaseRetriever thay vì VectorStoreRetriever --- cơ mà sợ nó ko đủ context nên mình chuyển qua CLAUDE WEB: fix xong lại bug lại fix lại bug lại fix
Contributor
Author
|
oke. Update full |
Contributor
Author
|
ok |
1fe22b1 to
db45207
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.