provided static path for Filestorage

This commit is contained in:
sumedh
2024-08-15 11:53:27 +05:30
parent afb9440420
commit 825471551b
2 changed files with 3 additions and 7 deletions

View File

@@ -33,8 +33,6 @@ import com.olympus.apollo.repository.KSGitInfoRepository;
@Service
public class GitRepositoryIngestor {
@Value("${ingestion.repository.basepath}")
private String ingestionRepositoryBasePath;
private final VectorStore vectorStore;
@@ -69,7 +67,7 @@ public class GitRepositoryIngestor {
private void ingestRepo(String repo, KSGitInfo ksGitInfo) {
String repoPath = ingestionRepositoryBasePath +"\\"+ repo + "\\";
String repoPath = "C:\\Users\\s.shamrao.shinde\\GenAIStorage" +"\\"+ repo + "\\";
logger.info("Repository path : " + repoPath);
try (Git git = Git.open(new File(repoPath))) {
ksGitInfo.setIngestionStatus("IN PROGRESS");

View File

@@ -8,11 +8,9 @@ public class StorageProperties {
/**
* Folder location for storing files
*/
@Value("${ingestion.repository.basepath}")
private String ingestionRepositoryBasePath;
private String location = ingestionRepositoryBasePath;
//private String location = "C:\\WindTre\\Repository";
//private String location = ingestionRepositoryBasePath;
private String location = "C:\\WindTre\\Repository";
public String getLocation() {
return location;
}