Comments (10)
Got the same case, have you solved it?
from raptor.
I also encountered the same problem, is there any solution?
from raptor.
@jeffreyzhanghc
can you pinpoint where in the repo this line of code is?
from raptor.
@cuichenxu @fatlism Hi, I have not totally understand the case yet, but my initial guess will be during the embedding process I use the original raptor model to train Chinese content, which in longer context yield to this bug very often, yet when I customize my embedding/summarization model for Chinese, this does not shows up for a while. My suggestion will be, if you are training longer text in different language, you might consider try a customized embedding methods specifically for that language, but I am not sure if that can solve the issue
from raptor.
@jeffreyzhanghc can you pinpoint where in the repo this line of code is?
it is under raptor/cluster_utils.py, line 33
from raptor.
@jeffreyzhanghc can you pinpoint where in the repo this line of code is?
and for the umap package it is in umap_.py line 2379 in .fit, and lead to error from line 1777 from _validate_parameters()
from raptor.
@cuichenxu @fatlism Hi, I have not totally understand the case yet, but my initial guess will be during the embedding process I use the original raptor model to train Chinese content, which in longer context yield to this bug very often, yet when I customize my embedding/summarization model for Chinese, this does not shows up for a while. My suggestion will be, if you are training longer text in different language, you might consider try a customized embedding methods specifically for that language, but I am not sure if that can solve the issue
Hi, thanks for your insights!
I just use texts that include English only. And the embedding model is SBertEmbeddingModel in raptor/EmbeddingModels.py, and it still suffer this, I really do not understand why.
By the way, can you run this to satisfy your aims successfully? Could you please share your custom embedding model code? I tried to implement one, but an error occurred.....
from raptor.
if n_neighbors is None:
# n_neighbors = int((len(embeddings) - 1) ** 0.5)
n_neighbors = max(2, int((len(embeddings) - 1) ** 0.5))
I found that the length of the aggregated vector array is 2. This error will only occur if dimensionality reduction is called, because the default parameter n_neighbors value is not set. I temporarily solved it through the above code.
from raptor.
if n_neighbors is None: # n_neighbors = int((len(embeddings) - 1) ** 0.5) n_neighbors = max(2, int((len(embeddings) - 1) ** 0.5))
I found that the length of the aggregated vector array is 2. This error will only occur if dimensionality reduction is called, because the default parameter n_neighbors value is not set. I temporarily solved it through the above code.
How long does it take when the context is long?
from raptor.
if n_neighbors is None: # n_neighbors = int((len(embeddings) - 1) ** 0.5) n_neighbors = max(2, int((len(embeddings) - 1) ** 0.5))
I found that the length of the aggregated vector array is 2. This error will only occur if dimensionality reduction is called, because the default parameter n_neighbors value is not set. I temporarily solved it through the above code.
How long does it take when the context is long?
A single-threaded execution might take several hours.
from raptor.
Related Issues (20)
- NarrativeQA metrics
- TypeError: Cannot use scipy.linalg.eigh for sparse A with k >= N. Use scipy.linalg.eigh(A.toarray()) or reduce k. HOT 4
- Question about multiple texts HOT 3
- Question about experiment HOT 3
- When the text gets longer, the embedding API does not seem to work. HOT 5
- Missing implied functionality `add to existing` HOT 3
- Support for Azure OpenAi HOT 2
- Return Citation HOT 2
- Constructing Layer Issue HOT 3
- Is it not possible to use in AZURE? HOT 1
- Adding new Document to the existing RAPTOR setup
- num_layers acts like max_num_layers HOT 2
- Inquiring about Vector DB implementation HOT 2
- multi doc HOT 2
- There seems to be a bug in the demo code.
- Evaluation code HOT 1
- Support for seeing Created Tree ? HOT 4
- **Outdated Dependencies in requirements.txt Causing Conflicts** HOT 1
- Bug in chunk splitting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raptor.