Comments (12)
I eventually got it working.
This seems like less of a bug and more so the documentation on config variables could be more clear. Provided permissions are set up correctly consider the following:
sharepoint_site_name
- is just the name of the site like “Data Science” or “Data”.
sharepoint_folder_path
- is just the name of any top level folder in Documents like “Tests”. If you add “Documents/Tests” or “/Tests” it will fail. Only the folder name. Note: I only tested with recursive = True
from llama-hub.
I changed a site without changing any code, and the code executed successfully; I changed other sites again, and it worked.
I feel a little strange, this failed site name is GPT, I don't know if it has something to do with this name, I used a mixture of English and Chinese sentences when I created the site again, the system automatically generates GPT as the site name.
The sites that I succeeded in executing were all single English word site names without exception.
I'm not sure if it's a problem with sharepoint itself
from llama-hub.
@jamiesun could you check if the permissions are set as mentioned here - https://llamahub.ai/l/microsoft_sharepoint?from=loaders
from llama-hub.
Same issue. Permissions are set up correctly in Azure/SharePoint
from llama-hub.
@jamiesun or @brandon-vidoori could you confirm whether you were trying to access only folders present in the documents
component of the sharepoint site and not other components like pages or site contents
from llama-hub.
Yes, I am only trying to access folders/documents present in the documents folder. It seems to fail on the graph search for SharePoint site specifically the query for the site name returns nothing.
from llama-hub.
I am also getting the same error: An error occurred while accessing SharePoint: {'code': 'itemNotFound', 'message': 'The resource could not be found.'}
for doc in documents:
TypeError: 'NoneType' object is not iterable
from llama-hub.
The sites that I succeeded in executing were all single English word site names without exception.
The site I have been testing with is like “Data Science” so that might be causing the issue. Will try with a site named “Data” to see if that succeeds.
The documentation for the Graph REST API search sites is not clear on expected behavior for a partial match and would seem to suggest a search for “Data” would return sites named “Data Science” and “Data Management”. GetSite seems more appropriate for requiring exact match so the inflexibility we are noticing is bizarre to say the least.
from llama-hub.
I too faced this issue. I am reading through the msft documentations for the fixes. The current loader is only application based but we also need user based loader, which is well I am working on it. Will post the updates here post fix.
from llama-hub.
Can we store indexes in the SharePoint document library itself for persistence? That was the data will be secure within the same domain.
from llama-hub.
SharePointReader returned the same with a single word English named site like "Data" from my previous example.
I know have set up permissions correctly because I can debug SharePointReader locally, set breakpoint and step through code until the access_token is generated, then use that same access_token in postman with GET https://graph.microsoft.com/v1.0/sites?search=Data
and success. Not only do I get Data site but I also get DataScience site that I previously created.
from llama-hub.
@brandon-vidoori Thanks for pointing out the exact problem. Will look to fix this up.
from llama-hub.
Related Issues (20)
- [Feature Request]: Linkedin integration HOT 1
- [Bug]: tools.0.function.description is too long
- llama_hub/tools/notebooks/hierarchical_agents.ipynb [Question]: How do we use HF Hub key instead of open.AI key
- [Bug]: Chain Of Table, KeyError: "None of [Int64Index([0, 2, 3], dtype='int64')] are in the [index]" HOT 1
- [Bug]: Semantic Chunking Llama Pack UnicodeEncodeError when using llamaindex-cli
- [Feature Request]: Docker Llama Pack applications
- [Feature Request]: I'd like to specify the appropriate Reader for each file found while using SharePointReader HOT 1
- [Feature Request]: SharepointReader cannot read root folder of drive
- [Feature Request]: Load Sharepoint Pages with SharepointReader
- [Feature Request]: Specify the file types to retrieve from a Sharepoint Drive in SharepointReader
- [Bug]: Outdated import statements in llama_hub/file/unstructured/base.py HOT 2
- [Feature Request]: Pass args and kwargs when calling partition or partition_via_api on Unstructured loader
- [Bug]: KeyError: 'filename'
- Request API for LLM [Question]:
- [Question]:Could't use Trulens on FuzzyCitationEnginePack to RAG evaluation
- [Feature Request]: Add retries argument to github reader
- [Bug]: incompatible imports between latest llama_hub and latest llama_index downloaded via pip + pypi HOT 3
- [Bug]: 2024-02-14 Build an Agentic Pipeline from Scratch - ValueError: Input {input} is not stringable.
- Pandas Query Engine with Mistral[Bug]:
- [Bug]: Error fetching content from (https://www.healthline.com/health/treat-pimple-on-neck#prevention): string indices must be integers
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 llama-hub.