enterprise-data-retrieval
Techniques for retrieving and querying structured enterprise data from JSON files containing slack messages, documents, meeting transcripts, and URLs.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- enterprise-data-retrieval
- description
- Techniques for retrieving and querying structured enterprise data from JSON files containing slack messages, documents, meeting transcripts, and URLs.
03 SKILL.md 正文
Enterprise Data Retrieval
Data Structure
Enterprise data is typically organized by product in /root/DATA/products/<ProductName>.json with the following top-level keys:
slack: list of slack messages withChannel,Message,ThreadReplies,iddocuments: list of docs withcontent,date,document_link,author,type,idmeeting_transcripts: list of transcripts withtranscript,date,document_type,participants,idmeeting_chats: list of chat messagesurls: list of URLs withlink,description,idprs: list of PRs withtitle,summary,link,mergeable,merged,number,state,user,created_at,reviews,id
Finding Documents by Type
import json
with open('/root/DATA/products/ContentForce.json') as f:
data = json.load(f)
# Find documents by type (e.g., "Market Research Report")
docs = [d for d in data['documents'] if 'market research' in d['type'].lower() or 'market research' in d['content'].lower()]
Finding Authors and Reviewers
# Documents have an 'author' field; PRs have 'user' and 'reviews'
for doc in docs:
print(doc['author']) # author employee ID or name
# For PRs
for pr in data['prs']:
print(pr['user']) # PR author
for review in pr['reviews']:
print(review) # reviewer info
Searching Slack for Keywords
keyword = 'competitor'
results = []
for msg in data['slack']:
if keyword.lower() in msg['Message'].lower():
results.append(msg)
for reply in msg.get('ThreadReplies', []):
if keyword.lower() in reply.lower():
results.append({'parent': msg, 'reply': reply})
Metadata Files
/root/DATA/metadata/employee.json: employee records mapping IDs to names/root/DATA/metadata/customers_data.json: customer records/root/DATA/metadata/salesforce_team.json: sales team info
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.