Skip to content
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

[Issue]: Getting the same result (output) after giving a seperate different input CSV file in examples> custom_input >run.py #1379

Open
2 of 3 tasks
akarim23131 opened this issue Nov 7, 2024 · 0 comments
Labels
triage Default label assignment, indicates new issue needs reviewed by a maintainer

Comments

@akarim23131
Copy link

Do you need to file an issue?

  • I have searched the existing issues and this bug is not already filed.
  • My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
  • I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.

Describe the issue

I am implementing basic examples, the original workflow and run.py worked perfectly well for custome_input in examples. But when I try to give it my own input csv file, in the same format as the workflow accept. So, instead of giving the different output, it gives me the same result.
Below is the modifications I made in run.py file

` Function to load the dataset from a CSV file
def _load_dataset_from_csv(file_path: str) -> pd.DataFrame:
dataset = pd.read_csv(file_path)
print("Loaded dataset:")
print(dataset.head()) # Print the first few rows to confirm dataset loading
return dataset

Async function to run the pipeline

async def run():
# Load the dataset from a CSV file (update the path with your file location)
dataset = _load_dataset_from_csv(r"C:\Users\Aabid Karim\Desktop\NFQS research literature\Graph_Rag_Implentation\Examples_custome_input\input_data.csv") # Replace with your CSV file path`

Steps to reproduce

No response

GraphRAG Config Used

YML
import asyncio import os import pandas as pd from graphrag.index import run_pipeline_with_config

import os
import pandas as pd
from graphrag.index import run_pipeline_with_config

Logs and screenshots

Screenshot of my output
Image

Screenshot of csv format
Image

Additional Information

  • GraphRAG Version: v0.1.1
  • Operating System: Windows 11
  • Python Version: 3.12
  • Related Issues:
@akarim23131 akarim23131 added the triage Default label assignment, indicates new issue needs reviewed by a maintainer label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Default label assignment, indicates new issue needs reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant